Support » Fixing WordPress » Password Protected Page Custom Template help needed!

  • Hi guys, I have a very simple question:

    I made a custom template for a page to query a certain category of posts but I want that certain page to be password protected. But the wordpress function of password protection seems to be working only on default template…

    Any thoughts? Ty!

Viewing 1 replies (of 1 total)
  • You can use:

    if (is_user_logged_in()) { ?>
    do stuff
    } ?>

    or on the right hand side in the “Publish” area is an option for:
    Visibility: Public (edit)

    You can select password protected there.

Viewing 1 replies (of 1 total)
  • The topic ‘Password Protected Page Custom Template help needed!’ is closed to new replies.