[wp-hackers] I need to show a private page on the menu when a user is logged in.

Bruno Reis bruno.p.reis at gmail.com
Wed Jan 26 20:54:48 UTC 2011


I´ve seen that wp_list_pages will call get_pages and get_pages has a
default 'post_status' => 'publish'.
What I need is to verify if the user is loggen and ask for a
post_status of either publish or private state.
But I see no way to do that without hacking into get_pages.

How can I do that?


More information about the wp-hackers mailing list