WordPress.org

Ready to get started?Download WordPress

Forums

WP_Query post_status=private problem (1 post)

  1. drewbarden
    Member
    Posted 3 years ago #

    Ok. This is driving me nuts, Ive got this query:

    <?php $query = new WP_Query('post_type=page&name=connect&post_status=private'); ?>
    <?php while ($query->have_posts()) : $query->the_post(); ?>
    
    // Stuff
    
    <?php endwhile; wp_reset_query(); ?>

    NOTHING I do will allow those pages to actually be displayed, so I've had to simply eliminate the post_status call and make those pages public. This is not ideal, because it's a one-page website with many WP_Queries and I don't want those individual pages to be accessible via permalink. HELP PLEASE!

Topic Closed

This topic has been closed to new replies.

About this Topic