Title: Two different &quot;Password&quot; entry pages?
Last modified: August 19, 2016

---

# Two different "Password" entry pages?

 *  [stebesplace](https://wordpress.org/support/users/stebesplace/)
 * (@stebesplace)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/two-different-password-entry-pages/)
 * 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](https://wordpress.org/support/users/stebesplace/)
 * (@stebesplace)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/two-different-password-entry-pages/#post-1775151)
 * 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.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [password](https://wordpress.org/support/topic-tag/password/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [stebesplace](https://wordpress.org/support/users/stebesplace/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/two-different-password-entry-pages/#post-1775151)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
