The inline documentation of WP_Query
has this:
Filter results by comment count. Provide an integer to match comment count exactly. Provide an array with integer ‘value’ and ‘compare’ operator (‘=’, ‘!=’, ‘>’, ‘>=’, ‘<‘, ‘<=’ ) to compare against comment_count in a specific way.
So there should only be one array, not 2 like with a meta query:
'comment_count' => array(
'value' => 10,
'compare' => '>=',
),
Related Posts:
- Find out total number of pages in global query on archive page?
- Resetting post data to previous loop in nested loops
- Order by multiple meta key and meta value [closed]
- Order by optional meta key?
- Make loop display posts by alphabetical order
- WP_query to get the first two latest posts, then another loop to get the next three
- Why is WP_Query not working with category_name?
- ‘Trying to get property of non-object’ when using WP_Query with ‘fields’ => ‘ids’
- Displaying several specific pages using WP_Query()
- Query to return maximum of one post per author
- Get attachment by slug
- RSS feed with specific keyword
- Get All IDs Of A Post Type Using WP_Query
- Group posts by custom field
- Multiple endpoints in one URL
- How to get the posts published in last two days using WP_Query?
- getting posts and number by specific meta value in multiple meta
- How to query using a combination of custom_field values?
- Get attached media only
- how to fire join query with post_meta
- Show one post per author and limit query to 8 posts
- Get term by custom term meta and taxonomy
- SELECT * FROM $wpdb->posts WHERE ID > 160
- How to show the posts of some category first, and then all other
- Explanation of WP_Query
- Pagination problem after WP_Query with tag filtering
- Custom Loop in Page Admin Causing Other Fields to Fail
- Pagination stops at page 6
- Paginated HTML Sitemap
- How to limit total number of posts in wp query loop?
- How to get posts on a specific date – WP Query
- WP_Query no posts with tax_query
- WP_Query with Metavalue
- My Main Query Modification is Messing up my dynamic main – why?
- WP_Query meta_query >= date
- Using Ajax to load more posts | Help me change the wording on my button to notify the user
- Get a post from other loop each n-posts in the main loop
- Search for multiple tags?
- paging in WP_Query on static page
- WP_Query() and get_posts() can’t handle over a thousand posts?
- Query by multiple meta elements not seeming to work – wordpress is timing out
- Sort by price woocommerce by ID post_meta
- Cluster WooCommerce products in each Category Archive by Tags assigned to products
- Post loop for all taxonomy terms
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Why is WP_Query not displaying expected data?
- Customy WP Query Args are convertet in SQL result
- Filter post query to only show direct children of category
- Highlight current post title on a page
- Why won’t draft listings appear for non-admins?
- My WP_Query didn’t work after upgrading to WordPress 3.2
- meta queries do ‘either/or’ checks
- search serialised meta_value for date value?
- has_excerpt() not working inside wp_query
- Apply query arguments after the nth post
- How to properly use AND / OR in custom search
- Get post and its children with WP_Query
- wp_trim_words strips dashicons
- Need help understanding this WP Query [closed]
- Ordering posts by custom field and grouped by month
- How to get main menu only with wp_nav_menu
- relation OR instead of AND – Filtered term ID’s in loop
- How to get specific string in explode array?
- filter posts by meta key with pagination
- Ajax (jquery) wp_query pagination returns -1
- Query to get result by Title or Meta along with tax_query parameter
- Oxygen Repeater Advanced Query
- Use dedicated functions
- Woocommerce Get Orders By Meta Value
- Pagination not working on archive.php template?
- Save large WP_Query to transient === false
- How to show specify category template for both parent and child category
- WordPress Query optimaization for slow query
- WordPress – just refresh blog archive by new query
- how to move a page from one drop down menu to another drop down menu
- WP_Term_Query->get_terms() very slow query for WordPress filter
- Meta query doesn’t remove placeholder escape before query
- Multiple values in WP_Query : category__and
- Get all wp_users sort by metakey
- How to use wp_query in different column in single loop
- Paginated Post List on Front Page
- Query custom meta value – post view and date meta
- Show subscriber id in loop
- modifying the loop multiple times with arguments passed through ajax to wp_query
- WP_Query – show posts where meta value and user_email match
- WP_Query causing links to not work
- Website goes slow down after importing long database
- Orderby Date and Category
- Pagination for custom query throws 404 errors on last pages [duplicate]
- Order posts by custom column using pre_get_posts
- wordpress nested loop
- Need help setting up a search form for wordpress [duplicate]
- Including ‘cat’ => $cat breaks meta_query
- problem in query_vars parameters
- Limit Tags display and ad Drop Down Menu
- Query posts only shows 1
- First post outside of loop, homepage only?
- Refresh wp_query with no changes
- SQL query into to WP query
- Search results stuck on page 1