Title: Exclude private posts
Last modified: October 15, 2019

---

# Exclude private posts

 *  Resolved [Alex](https://wordpress.org/support/users/alex4711/)
 * (@alex4711)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/exclude-private-posts/)
 * Hi,
 * We have some posts set to “private” on our blog. Will these automatically be 
   excluded or will the (not logged in) user face a 404 page in that case? If I 
   understand correctly randomization works via category inclusion, not exclusion.
   
   I’m a programmer but know only little php (but lot’s of other stuff ;-). How 
   hard would it be to include a category filter?
 * Kind regards,
 * Alex
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-private-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/exclude-private-posts/#post-12131649)
 * I believe they will be excluded, because this only looks at post of type “published”.
   To test, you can make a single private post in a category, and try random redirect
   with this category. Good luck!

Viewing 1 replies (of 1 total)

The topic ‘Exclude private posts’ is closed to new replies.

 * ![](https://ps.w.org/better-random-redirect/assets/icon-256x256.png?rev=1039316)
 * [Better Random Redirect](https://wordpress.org/plugins/better-random-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-random-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-random-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/better-random-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-random-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-random-redirect/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [exclusion](https://wordpress.org/support/topic-tag/exclusion/)

 * 1 reply
 * 1 participant
 * Last reply from: [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/exclude-private-posts/#post-12131649)
 * Status: resolved