Forums

Two different "Password" entry pages? (2 posts)

  1. stebesplace
    Member
    Posted 1 year ago #

    I am looking to find out if I could produce two different "password" protect pages for both posts AND pages.

    If a user clicks on a post, and gets prompted for a password because I've set that post to be password protected - they would see one version.

    If a user is given a URL for a specific page that is password protected, they would see a different password protected page.

    Hopefully I explained that well enough. Right now both use the same code - I'm looking to separate the code to account for both "types" - Pages and Posts.

    I have code in a custom function to format the default password area. This code is in my functions.php under my theme.

  2. stebesplace
    Member
    Posted 1 year ago #

    I figured it out. Adding a conditional tag (if is_page()) resolved it with an elseif for everything else (posts).

Topic Closed

This topic has been closed to new replies.

About this Topic