• 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.

Viewing 1 replies (of 1 total)
  • Thread Starter stebesplace

    (@stebesplace)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Two different "Password" entry pages?’ is closed to new replies.