Title: WP_Query post_status=private problem
Last modified: August 19, 2016

---

# WP_Query post_status=private problem

 *  [drewbarden](https://wordpress.org/support/users/drewbarden/)
 * (@drewbarden)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wp_query-post_statusprivate-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.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [drewbarden](https://wordpress.org/support/users/drewbarden/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/wp_query-post_statusprivate-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
