Title: Exclude posts with restricted access
Last modified: July 5, 2024

---

# Exclude posts with restricted access

 *  [polmock](https://wordpress.org/support/users/polmock/)
 * (@polmock)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/)
 * Is there a way to exclude from display posts with restricted access?
 * For example, if I have a category for only registered users, is there a way to
   hide all popular posts associated to this category for a guest user? Now he sees
   them but he can’t open them. I’d like him not to see them.
 * Thank you

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/#post-17870860)
 * Hi [@polmock](https://wordpress.org/support/users/polmock/),
 * Well, the plugin doesn’t offer such a feature but to answer your question yes
   it might be possible to dynamically exclude posts when specific conditions are
   met via code (eg. by using filter hooks for example.)
 * How exactly are you keeping guests from seeing these posts?
 *  Thread Starter [polmock](https://wordpress.org/support/users/polmock/)
 * (@polmock)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/#post-17871035)
 * Hi [@hcabrera](https://wordpress.org/support/users/hcabrera/) ,
 * I’m using plugin “[User Access Manager](https://it.wordpress.org/plugins/user-access-manager/)“.
 * If you suggest me how, I could add a filtering hook as you suggest 🙂
 * Thank you
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/#post-17871094)
 * I’m not really familiar with the User Access Manager plugin so I’d need to understand
   how it works first before I can make any specific suggestions 😛
 * I’ll play around with it and report back as soon as I can.
 *  Thread Starter [polmock](https://wordpress.org/support/users/polmock/)
 * (@polmock)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/#post-17871116)
 * Ok thank you.
 * If you know another good plugin alternative to that, I could evalutate to migrate
   to it 🙂

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

The topic ‘Exclude posts with restricted access’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [polmock](https://wordpress.org/support/users/polmock/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/exclude-posts-with-restricted-access/#post-17871116)
 * Status: not resolved