[wp-hackers] List Private pages?
computerguru at neosmart.net
Thu Mar 29 12:07:23 GMT 2007
You can grab the page as post... then check with is_page() to do anything
you might want to modify - unless I'm understanding you the wrong way.
Pages are supposed to be static, so I guess they're not checked as much. But
the only difference between a post and a page is in the way they're
displayed in the theme (and categories and stuff, but that's really beyond
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Chris
> Sent: Thursday, March 29, 2007 1:59 PM
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] List Private pages?
> I want to show menus which include pages marked as private IF a user is
> logged in.
> I tried overriding, but that does not work
> The get_pages() code seems to be hard-coded to post_status='publish'.
> Can you recommend a way to do this?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers