The issue turned out to be in another part of my code and nothing to do the the above query, which works just fine.
Related Posts:
- WP_Comment_Query pagination, delving into the unknown
- Sort posts by category name and title
- Getting all user metadata from user
- ajax category filter
- Display posts the match taxonomy term linked from wp_list_categoies?
- Limit WP_Query to only X results (total, not per page)
- How to disable main query?
- Use post__in and post__not_in together?
- WP_Query on different site in a multisite setup
- how to retrieve specific product attribute value in an sql query?
- How to user WP_Query to lower the number of queries
- Exclude post on loop by multiple meta key value
- Compile two queries to one set of results?
- how do i combine keyword search and taxonomy in a WP_query $args array Worpresss [closed]
- Sanitizing search data for use with WP_Query
- How to search by a post and a category name on wordpress at the same time?
- What’s the point of the query_vars filter?
- Meta query with order by another custom field
- How to retrieve current page WP_Query arguments?
- How can I get an array of all IDs from the current queried object?
- Get Category Archive Template Name Dynamically
- How to limit WP_Query to one result on the loop?
- Query post from all category with same tag on 1 pages
- How to correctly pass values to wpdb->prepare()?
- How to use filter hook “the_posts” with a function that refers to $this?
- Multiple loops without repeating content
- WP_Query, pre_get_posts and offset
- add_actions called from functions.php not returning good values
- Multiple Search Terms WP_Query
- Filtering posts from different categories into different section by doing WP_Query only once
- Show posts from a custom taxonomy on a page
- Suggestions on making this query/code more performant
- Where to put meta Keys
- How to return a 404 when custom query matches nothing?
- Should wp_query automatic meta and term cache priming be used in an enviroment with an object caching
- wp_query with custom post type only returning last posted
- Display custom tags on pages that have a specific page parent
- Slow WP_Query with ‘OR’ on meta_query
- How to filter a query by multiple meta keys and order by other meta keys
- Multiple Orderby’s using random order WP_Query
- using pre_get_posts for search results not found
- Transient api Caches confused
- How can I override one post and make it display content for another post?
- Exclude parent with child pages from WP_Query
- Co-authors list of all posts
- Get multiple users with meta value in one query and populate WP_User class
- Query Posts by Tag and exclude
- get_posts always returning the same number of posts = 5
- how to write wordpress query for multiple metakeys checking?
- Sorting search results with custom dropdown
- Posts query according to meta box date
- create metabox to activate slider
- How to display a list of posts in same child category as current post
- querying posts with a custom status
- problem with loop
- Display post meta conditionally based on it’s value
- How can i show pagenavi in my author.php?
- Randomly select one of last 3 posts
- Query multiple meta key values for template
- How do I get the content of a custom instance of WP_Query?
- Change post query onclick
- Using WP_Query with multiple loops on one page in search.php
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- Order by post meta not working with pre_get_posts filter
- Searching not only by post name but also category
- WP_Query, Paginate by Custom Field
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- is_user_logged_in not working from WP-API (wp-json)
- WordPress private post won’t display to other admins
- Only show tag with the same id as the post
- Search Exact on WordPress – Relevannsi Solution Not Working
- WP_Query() not working as expected
- ACF: How can I publish values of ACF fields in a loop while using wp_query?
- Sort by price wpdb
- Posts per Page not working
- Trouble with serialized metadata
- Show a message if there are no active posts in category
- Get authors list and sort them by recent posts
- Custom filter from post meta
- Problem with my loops
- next_posts_link not visible on first page
- Pagination not working in custom loop WP_Query
- Multiple wpostmeta.meta_key
- Saving custom fields for WP_Query to retrieve
- Modify query to exclude certain ids and certain parents and its corresponding children
- How to fix pagination for custom loops on front-page.php
- Filter posts/pages by user_role array
- WP_Query with meta_value_num and meta_query not paged correctly
- I need value of saved meta to display next to the post it is associated with
- Post Query not working after updating to 4.1
- Cannot order by in WP_Query
- How to sort a WP_Query array by post_name after an array_merge();
- Search Query that Includes Custom Table
- Pagination with WP_Query not working
- new WP_Query based on average values of meta fields
- Can’t seem to get an else statement correct? [closed]
- query_vars category_name only display one catgory out of multiple categories
- Incorrect posts displayed on category page
- How to get all post_id and meta_value using meta_key in wp_postmeta table
- List categories using WP_Query