Ready to get started?Download WordPress


Don't show sub pages on password protected page (3 posts)

  1. sccr410
    Posted 5 years 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.

  2. fullthrottledevelopment
    Posted 5 years ago #

    global $post; if ( !post_password_required($post->ID) ) { show subpages };

  3. thelocallanding
    Posted 4 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic