$wp_query->found_posts; returns zero
Related Posts:
- Highlighting Sub topic in a post?
- Include data from custom table in WP_Query
- Get specific ACF key and value from all posts – no access to DB
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Add to search posts query array with post IDS which will appear first
- When should you use WP_Query vs query_posts() vs get_posts()?
- order by numeric value for meta value
- numberposts? showposts? posts_per_page?
- How to query for most viewed posts and show top 5
- WP_Comment_Query pagination, delving into the unknown
- Sort posts by category name and title
- Custom WP_Query order by post_meta and (author) user_meta
- WP_Query for WooCommerce Products
- Is there an action/filter called when WP_Query->query is finished and assigns posts
- Perform query with meta_value date
- Pagination Not working on Home Page with 2 Query
- how to retrieve specific product attribute value in an sql query?
- How to find if a post with custom_field == X exists?
- WordPress custom archive page
- WP_query category__in not working, only pulls from first category
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Retrieve or Query Pages by ID
- Include Sticky Posts with Custom Query
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- How to do a query on custom taxonomies that is uncategorised?
- Empty tax_query array returns an empty array
- Meta Query for specific months
- How do I search inside specific taxonomies in WordPress
- Different string for specifed post type on posts listing at homepage
- if/else on custom query gives 200 OK when condition not met?
- How to correctly pass values to wpdb->prepare()?
- Setting get_queried_object
- remove query arg from url after set query
- How to loop for every result found in the_content() when using the search query?
- difference between like ‘%%%var%%’ and ‘%var%’
- only delete post within query / for each statement (front end)
- Order By table field comment_status in WordPress > 4.0
- How to detect if query is runned from widget?
- How to optimize multiple WP_Query() calls on one page?
- Sort query by author: 1 author, then others
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- How to duplicate 5 posts out of WP_Query results?
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Slow queries on a huge database
- Multisite pagination issue by multi query archive 404
- Query with relation and one without relation using multiple taxonomies?
- How to get list of posts from permalinks?
- Is there a reason why Pages are not publicly_queryable?
- Check return value of get_posts
- Exclude some authors from query
- Transient api Caches confused
- How can I override one post and make it display content for another post?
- Get multiple users with meta value in one query and populate WP_User class
- Get a list of posts by specific category
- How to check the array values, what WP_Query has brought to me?
- How to add custom meta to ‘pre_get_terms’?
- Shortcode for custom query not returning results when attributes are added
- Should I reset $wp_query?
- I am officially missing something about transient posts
- Start Query from 2nd Post without offset
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Post incorrectly excluded when using “category__in”?
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- Any way to use FETCH_KEY_PAIR with $wpdb?
- How to use wp query in my custom page without including header and footer in wordpress
- Query against multiple locations within single custom post type post
- Multi line of $wpdb->query just run 1 time and end the loop right after
- How to query users by post count no less than 10
- WP Query. Ordering posts by another post types meta
- Woocomerce – Order products by float attribute in archive pages
- How to make a search query if not found in post table then search in postmeta table?
- WP_Query about meta_key and its array value
- Create global array to compare inside a query
- how to show more than 1 post into three columns query
- Custom query using WP_Query is not working
- Using the same WP_Query for shop and widgets in WooCommerce shop
- How can I get all the posts that are related with a specific taxonomy term?
- wp query custom orderby not custom field
- Filter posts/pages by user_role array
- Pagination in custom query in a category page
- Get a list of the last posts grouped by author and filtered by category
- When should you use WP_Query vs query_posts() vs get_posts()?
- How to query post ids liked by the Author
- Modify query after meta value
- Custom post types loop on a page template
- WP_Query breaks pagination
- Pagination in WP query with transient API
- Parsing External Table Arguments
- difference between methods of query
- Pagination problem with multiple loops on the same page
- Query posts by meta value and sort by another meta key
- how to use transient method?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- I need to get all categories from a WP_Query
- How to get posts that have certain meta key value and order based on another meta key’s value
- Filtering custom post type list in admin by custom meta key/value