• Hey there,

    I’m using get_posts to generate a list of posts.

    $args = array(
    	'post_type'		=> 'post',
    	'numberposts'		=> -1,
    	'post_status'		=> array('publish'),
    	'orderby'		=> 'post_date',
    	'order'			=> 'DESC',
    	'suppress_filters'	=> false
    );
    
    $posts = get_posts( $args );

    However, the list includes posts named “Auto-Draft”, even though I do not include them in the ‘post_status’ parameter.

    Anything I’m missing? Thanks!

  • The topic ‘Auto-Drafts with get_posts ?’ is closed to new replies.