I need to sort (custom) posts by 2 custom field values… custom field name 1: is_sponsored...
I’ve been troubleshooting an issue over the past few days and keep going in circles. Could really use a fresh pair of eyes ...
-
April 23, 2022
- 0 Comments
i try to run a custom post type query to match following criteria: sort movies first by year in descending order, after that ...
-
April 23, 2022
- 0 Comments
Is there a way to set an alias on the meta_query arguments when running a get_posts()? One of my queries is performing poorly. ...
-
April 22, 2022
- 0 Comments
I think the problem essentially relates to sql query structure and I am not an expert…. I need to search for posts (custom ...
-
April 22, 2022
- 0 Comments
I’m trying to query for a custom post type for a gallery system. I have a checkbox to set a gallery as a ...
-
April 21, 2022
- 0 Comments
Based on example here https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/ I’d like to modify the query $q = new WP_Query( array( 'meta_query' => array( 'relation' => 'AND', 'state_clause' ...
-
April 21, 2022
- 0 Comments
How can I build a query to find posts that DO NOT contain a certain meta key or meta value? for example: query_posts( ...
-
April 20, 2022
- 0 Comments
I’m planning a custom WordPress theme where the Custom Post Type (CPT) will have latitude and longitude coordinate as it’s meta value. The ...
-
April 20, 2022
- 0 Comments
Not sure how to achieve this. I’m trying to mix standard posts and custom posts on a site homepage but I only want ...
-
April 19, 2022
- 0 Comments