WP_Query post_status=private problem
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!
- The topic ‘WP_Query post_status=private problem’ is closed to new replies.