Title: private password protected posts?
Last modified: August 20, 2016

---

# private password protected posts?

 *  [macarrier](https://wordpress.org/support/users/macarrier/)
 * (@macarrier)
 * [15 years ago](https://wordpress.org/support/topic/private-password-protected-posts/)
 * Hi all!
 * I’ve been working on this site where a photographer wants some of his pages password
   protected. plus, these posts must NOT show when i build a post list.
 * is there any way i can exclude password protected posts from get_posts() ?
 * thanks alot for your future input.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years ago](https://wordpress.org/support/topic/private-password-protected-posts/#post-2127980)
 * The User Access Manager plugin does that. There are also a couple of other, similar
   plugins.
 *  Thread Starter [macarrier](https://wordpress.org/support/users/macarrier/)
 * (@macarrier)
 * [15 years ago](https://wordpress.org/support/topic/private-password-protected-posts/#post-2127998)
 * thanks but I’d like it to be plugin independent. if I don’t find any other solution,
   I’ll look at it. I must add that this is a custom made theme and that my client
   is not tech savy.
 * up to now, I used these arguments with my get_posts() :
 * $args = array(
    ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘posts_per_page’
   => $options[‘num_posts’], ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘
   post_password’ => ” );
 * I used << ‘post_password’ => ” >> hopping it would force WP to get only empty
   password posts, but it’s a no go. any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘private password protected posts?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [macarrier](https://wordpress.org/support/users/macarrier/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/private-password-protected-posts/#post-2127998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
