• 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!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong Params in WP_Query documentation’ is closed to new replies.