Title: Query only restricted posts
Last modified: July 15, 2024

---

# Query only restricted posts

 *  [LS](https://wordpress.org/support/users/lsterling03/)
 * (@lsterling03)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/query-only-restricted-posts/)
 * Some of our blog posts are restricted and some are not. Is it possible to use
   WP_Query to query only restricted posts?
 * For example, is there a meta key/value that corresponds to restricted or unrestricted?
 * I simply want to list all posts that have the “restricted” option selected. (
   And vice versa — list all posts that do NOT have the “restricted” option selected.)
 * Thanks!
    -  This topic was modified 1 year, 10 months ago by [LS](https://wordpress.org/support/users/lsterling03/).
    -  This topic was modified 1 year, 10 months ago by [LS](https://wordpress.org/support/users/lsterling03/).

The topic ‘Query only restricted posts’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [LS](https://wordpress.org/support/users/lsterling03/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/query-only-restricted-posts/)
 * Status: not resolved