[wp-hackers] Don't show if post status = private

Aaron Jorbin aaron at jorb.in
Fri Oct 14 16:57:01 UTC 2011


Just make sure that the users you want to prevent from doing this lack the
following capabilities:

delete_private_posts
edit_private_posts
read_private_posts
delete_private_pages
edit_private_pages
read_private_pages

http://aaron.jorb.in
twitter: twitter.com/aaronjorbin


On Fri, Oct 14, 2011 at 12:41 PM, Robert Lusby <nanogwp at gmail.com> wrote:
>
> Hello,
>
> I'd like to "NOT" show posts in wp_query class call, if their status is
set to "private".
>
> This is ...not show them to any users, even logged in / admin users.
>
> Is that possible?
>
> Rob
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list