[wp-hackers] List Private pages?

Chris chris.hearn01 at ntlworld.com
Thu Mar 29 11:59:28 GMT 2007


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_status=')
The get_pages() code seems to be hard-coded to post_status='publish'.

Can you recommend a way to do this?
Thanks
Chris




More information about the wp-hackers mailing list