prevent get_comments() from returning comments not in comment__in
Related Posts:
- Exclude comments from a WP_Query object?
- WP_Comment_Query pagination, delving into the unknown
- Get posts with condition on comment meta value
- WP_Query sort by comment meta data
- Get number of comments after modifying comment query
- using wp_query to return posts w/ comment count > 0
- How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?
- Query posts with more than 20 comments
- How can I retrieve comments from last 5 minutes for a post?
- Sorting posts DESC based on the number of comments using WP_Query
- Most commented last 24h, week, month, year and all time – posts_where
- Most commented post showing 2 records
- WordPress Comments sort by custom meta key
- Query posts by last comments
- How to list posts with disabled/closed comments, with pagination?
- I need help using pre_get_comments to limit comments in the comments admin screen
- All Posts Have The Same Comments
- Is it possible to give a classname to specific comments in the WordPress admin?
- How to get_comments() ordered by date and parent?
- Comments orderby comment date not working
- How to display comments list by order when clicking on newest or oldest link?
- Get comment number by date range?
- Inherit args from the main wp_query or wp_comment_query to my custom query
- Return only Count from a wp_query request?
- How to force a query conditional?
- WP_Query: Exclude hidden products from WooCommerce product list
- Conditional arguments for WP_Query and tax_query depending on if $somevar has a value
- How to get order of posts?
- Combining two wordpress queries with pagination is not working
- query to find “parent” posts of CPT A while filtering “child” posts of CPT B
- Get Recent Posts by Date in Multisite
- Executing Queries in tag.php
- next_posts_link not working for loop called with ajax
- author.php with ACF and CPTs
- Get list of posts which have at least one term from a custom taxonomy with WP_Query
- WP_Query using meta_query with relation OR and orderby meta_value doesn’t work
- Identify which loop you are hooking into; primary or secondary?
- WP Query: How to get posts from a specific author OR posts with a specific meta value
- Pagination shows 404 after a certain number of pages
- Get_post() with meta_key when compare is a date
- Match two posts in categories
- tax_query in WP_Query problem
- Display posts from Last 24 hours and order them based on most views
- Query with pre_get_posts to get pagination
- WP_Query meta_query by array key
- Trying to list out child pages with WP_Query
- Pagination is not working using WP_Query
- view queries made?
- Filter and list posts of a custom taxonomy
- Exclude first 5 posts of specific categories in the main loop
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Intentionally exceed max_num_pages on main query without getting 404?
- Pass the same object to multiple widgets in a template with one query
- Get rewrite result
- WP_Tax_Query with post_tag not working
- Count total number of post in foreach loop
- WP_Query not retrieving by random order under parent
- Get images only if parent status is publish
- How to show recent and upcoming birthdays using meta_query
- How to show min 1 post from specific categories/tax WP_Query?
- Posts loop with pagination on a single post page
- How to change posts order on Category and Tag archives?
- Using WP_Query and WP_Meta_Query Outside of WordPress
- How WordPress attaches its Featured Images with posts?
- Tell wordpress to show a single page instead of an archive
- Create a sitemap without a plugin – get parent pages only?
- WP_Query on custom field and order results
- Have functions work outside the loop with 404 override
- how to merge a WPQuery array with a PHP array and use the Loop to Output the result
- WordPress: Display posts by custom select query
- query offset countdown by 2 each day?
- Get ONLY the number of results in a query
- Include custom field in Ajax search WordPress
- Inserting serialized value into wp_postmeta using update_post_meta
- Orderby ASC changes to DESC in WP_Query
- Display custom field meta outside loop, site wide
- Where is the WP_Query instance instantiated (when working with themes)?
- Iterating through $wpdb query without using get_results for large query results
- How to get only return parts of WP_Query result for performance?
- Filter posts in category archive page by year using a dropdown
- Show post number in widget loop
- Extend product search with meta in WooCommerce
- how to make members list directory through wordpress post custom meta key.
- Custom Query by Author field and meta
- Custom wp_query for related posts with cmb2
- Loop Performance > JSON files vs. WP_Query vs. REST API
- Include data from custom table in WP_Query
- WordPress ignoring LIMIT / posts_per_page despite being in wp_query
- Conflict with get_posts and the_content
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How to save the results of a query as a php file for an autocomplete search bar
- Why ignore_sticky_posts argument is in sticky post query?
- Complicated `orderby` based on text in custom field
- meta_query post_date not returning results
- WP Query: orderby with one meta key, but multiple values
- Filtering custom post type list in admin by custom meta key/value
- WP_Query returns wrong post when searching by title?
- WP Query to display events and posts at the same page
- get posts returns results but wp_query does not