Title: Wrong Params in WP_Query documentation
Last modified: September 25, 2018

---

# Wrong Params in WP_Query documentation

 *  [dulesaga](https://wordpress.org/support/users/dulesaga/)
 * (@dulesaga)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wrong-params-in-wp_query-documentation/)
 * While working with WP_Query discovered one param for it that is not correctly
   outlined in the documentation:
 * In documentation:
 *     ```
       $args = array(
       	'post_type' => 'post',
       	'comment_count' => array(
       		array(
       			'value' => 25,
       			'compare' => '>=',
       		),
       	)
       );
       $query = new WP_Query( $args );
       ```
   
 * Should be:
 *     ```
       $args = array(
       	'post_type' => 'post',
       	'comment_count' => array(
       		'value' => 25,
       	        'compare' => '>=',
       	)
       );
       $query = new WP_Query( $args );
       ```
   
 * Not sure where to report this, so I thought of posting it here.
 * Thanks!
    -  This topic was modified 7 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-params-in-wp_query-documentation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Jon (Kenshino)](https://wordpress.org/support/users/kenshino/)
 * (@kenshino)
 * Lord Jon
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wrong-params-in-wp_query-documentation/#post-10722163)
 * Hey! Thank you for reporting this.
 * So the Codex is actually publicly editable (just click on the login text within
   the Codex screen and use your WordPressorg credentials).
 * That being said, DevHub is the canonical source – We’ll be putting up a redirect
   for that Codex article to [https://developer.wordpress.org/reference/classes/wp_query/](https://developer.wordpress.org/reference/classes/wp_query/)
   shortly.
 *  Thread Starter [dulesaga](https://wordpress.org/support/users/dulesaga/)
 * (@dulesaga)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wrong-params-in-wp_query-documentation/#post-10726197)
 * Thanks Jon, looks like I don’t have the permissions to edit that codex page.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wrong-params-in-wp_query-documentation/#post-10726754)
 * [@dulesaga](https://wordpress.org/support/users/dulesaga/) You do have permissions
   to edit that page. You just need to be logged in there first.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wrong Params in WP_Query documentation’ is closed to new replies.

## Tags

 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 3 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/wrong-params-in-wp_query-documentation/#post-10726754)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
