• LS

    (@lsterling03)


    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.
    • This topic was modified 1 year, 10 months ago by LS.

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