How to stop excluded category from showing its sticky posts?

I have a loop with excluded category (Featured) so now my category is not visible inside the loop. Now here is my problem if I set my post inside Featured category to be "sticky" that post will...

in_array() expects parameter 2 to be array, string given in Classipress

I'm using Classipress theme for wordpress, and I'm trying to sticky my featured ads on the on in categories . I found a code that is return this error: Warning: in_array() expects parameter 2 to...

Display a category only when it has posts

For many different reasons I was forced to deactivate the sticky posts function on WordPress. Still I need this function. This means that I need a workaround. I need to show a post on the top of...

AJAX Load More Plugin Loads Posts That are Already Shown

I am working on a site with a page that has multiple sections, each section has multiple loops featuring multiple categories. I use Ajax Load More plugin to load new posts for each sections. The...

How do you add custom fields defined in posts to the rest API responses in wordpress

I want to do this without using any sort of plugin since these are both core wordpress features (custom fields and the REST API). Here is the documentation for custom fields for...

Volley Error Response Null

I'm first time using JSONVolley I'm stuck in Response.ErrorListener() error.getMessage() is always null don't know why I'm getting data from localhost and using mobile. If i use emulator then...

Item date sorting from API JSON in angular

I've generated some news items from a laravel API output, i display these on a angular 4 cli project. I noticed the items aren't on descending order though and I'm trying to fix this on the client...

JointsWP Custom Post Type Wordpress Menu

So I followed the JointsWP custom post type templates exactly. But in the wordpress admin, in the menu my Categories and Tags are not quite right. I need to remove the Categories and Tags menu...

How to disable/hide Wordpress theme footer on all Woocommerce product category pages using PHP?

Thank you for taking the time to help me in advance! I am trying to get a themed Wordpress website (Mr. Tailor) with Woocommerce not display the theme footer only on the product category pages...

Bootstrap Modal Pop Up bind controls - Dropdownlist

I have an HTML table which loads data from the database. When I click on a row a modal pop fetches more content from the database with an option to edit a change on the selected row. My...

Replace image in an <img> with CSS

I'm trying to create an hover state on a logo following this article from CSS-tricks, but I'm unable to make it work. I'm using a WordPress theme where I can only edit the CSS (and JS but I don't...

Using VBA and VBA-JSON to access JSON data from Wordpress API

I'm building a VBA app that creates and modifies Wordpress website pages using resources scraped from the web. The Wordpress API returns a JSON file but there is no native support for parsing JSON...

Get sticky posts from specific category in WordPress

I want to check if a category has sticky posts. To do that, I use $sticky = get_option( 'sticky_posts' ); on the archive.php. But it shows all sticky posts from the blog. Not only from the...

WP_Query - `category__not_in` not working when showing sticky posts

I'm trying to show the first 4 sticky posts that do not have the videos category and this is my current loop: <?php $videos_cat_id = get_cat_ID('videos'); $args = array( 'post__in' =>...

Add array of json (which contain inner array) in realm using swift

I have created API which generate JSON, that JSON looks like this [ { "id": 105, "date": "2018-09-06T22:37:57", "date_gmt": "2018-09-06T17:07:57", "guid": { "rendered":...

wordpress sticky post on archive page with pagination

I have category page which is redirecing to archieve.php. you can see here : https://www.dealfinder.lk/category/dining/ There are two sticky posts at the top. Up to 25% OFF at &Co Pub and...

Wordpress REST API, how to get /post schema?

I have created a custom endpoint, that basically just grabs a few different posts from each category and returns it. This endpoint works fine, but the schema of each post being returned is not the...

Retrofit Json some data returns null

Some values ​​return null. BetterFeaturedImage betterFeaturedImage null is returning. Outside the main Pojo class there are 31 more. Although I do serializable classes, some values...

Flutter Map a custom JSON to Object

I want to get an image URL from WP REST API, I was retrieving my posts to a List so getting featuredImageUrl was like this : A) //THIS GETS AN URL TO ATTACHMENT WHEN IM USING A...

TypeError: this.posts.filter is not a function using Vue js and wordpress api

I'm trying to fetch some posts in wordpress using the formidable pro api and vue js. The data loads correctly initially, however, I get TypeError: this.posts.filter is not a function when I click...

Position: sticky; not working no matter what

Trying to get a class to remain sticky and constantly be in view when the user scrolls down the page, but doesn't seem to work no matter what. I tired: .entry-summary{ position: -webkit-sticky; /*...

How can I make a posts category filter with checkboxes?

On my blog archive page, I'm trying to make a category filter with checkboxes so visitors can filter posts by categories without reloading the page. But I get stuck how to hide items with...

How to solve errors like void' is not assignable to parameter of type '(value: [Post, any, {}[]]) => void'

Am constantly getting the error while trying to fetch some stuff in Ionic from Wordpress. [ng] ERROR in src/app/post/post.page.ts(30,37): error TS2345: Argument of type '(post: Post) => void' is...

Decoding Nested JSON Elements (SwiftUI)

I am trying to parse the JSON data below into the structs that are shown. I am having a helluva time trying to figure out how to get at the "nested" elements, such as elements "title:",...

How can I save data from a POST request output in Java?

I'm making a desktop app in Java that makes posts on Wordpress via API calls to transfer posts from an old HTML website to a new one. I have this piece of code that makes the posts and works...

How to parse json with Alamofire in Swift 5

I'm new in iOS programming language and I'm trying to fetch data from a WordPress JSON into a table view. I'm encountering the error: value of type 'Any' has no subscripts when I try to...

Sticky Posts on Top of Category Query

I use this query on the Frontpage to display three posts from specific categories in a wp_query. The articles in the query are displayed randomly. Now the posts that are sticky would like to stay...

Field 'id' expected a number but got <built-in function id>

i want to delete and edit notes in my django app, but i am struck on this error for long Error : "TypeError at /delete/1/ Field 'id' expected a number but got ." models.py from django.db import...

How to fix a strange behaviour with laravel livewire and pagination?

I started with Laravel 8 and livewire a few days ago. I still have a lot to discover but I am on my way. Lastly, I encountered a behaviour I have trouble understanding. My goal I want to create a...

Include Sticky Posts with Custom Query Posts

I'm working with Custom Query in WordPress, Basically, I'm showing 4 most recent posts of a category having ID 4 and my query is as follows:- $args = array( 'post_type' => 'post' , 'orderby'...