[wp-hackers] List Private pages?

Computer Guru 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
the point).

Computer Guru
NeoSmart Technologies

> -----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?
> Hi,
> 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
> e.g.
> wp_list_pages('title_li=<h2>'.__('Fleets').'</h2>&child_of=13&post_stat
> us=')
> The get_pages() code seems to be hard-coded to post_status='publish'.
> Can you recommend a way to do this?
> Thanks
> Chris
> _______________________________________________
> 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