How can I tell if a page is password protected? If it is, I don't want to show it's child pages in a side navigation.
How can I tell if a page is password protected? If it is, I don't want to show it's child pages in a side navigation.
global $post; if ( !post_password_required($post->ID) ) { show subpages };
Hmm. Can you give a little more info on where/how to use that code, fullthrottle? I'm having the same problem as sccr410.
This topic has been closed to new replies.