Forums
Home / Plugins / Don’t show sub pages on password protected page
(@sccr410)
15 years, 3 months ago
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.
(@fullthrottledevelopment)
14 years, 11 months ago
global $post; if ( !post_password_required($post->ID) ) { show subpages };
(@thelocallanding)
14 years, 5 months ago
Hmm. Can you give a little more info on where/how to use that code, fullthrottle? I’m having the same problem as sccr410.