Wordpress: access one of 2 pages depending on password entered
July 9, 2018 10:37 AM Subscribe
I'm building a Wordpress based wedding website. I want to put password protection on the site but to give main ceremony guest one password and evening reception people another - then branch to show them one of 2 pages depending on the password they entered.
No wish to do any form of user registration. It seems like it would be fairly thing to achieve. Any suggestions involving plugins or scripts would be very welcome.
Response by poster: Thanks egypturnash. I recognise that would work - and may yet have to go down that route. However my preference from the point of view of user experience is to just give everybody one URL. The password would be both the access token and the routing instruction.
posted by rongorongo at 10:49 AM on July 9, 2018
posted by rongorongo at 10:49 AM on July 9, 2018
Best answer: This might get you there: https://stackoverflow.com/questions/9785518/wordpress-redirect-on-password-to-certain-page
(specifically this proposed plugin: http://thecodecave.com/plugins/smart-passworded-pages/ )
posted by misterbrandt at 11:38 AM on July 9, 2018 [1 favorite]
(specifically this proposed plugin: http://thecodecave.com/plugins/smart-passworded-pages/ )
posted by misterbrandt at 11:38 AM on July 9, 2018 [1 favorite]
Response by poster: Many thanks for that, misterbrandt. The "smart-password" plugin has not been updated for a while - and is untested with the current version of Wordpress. However it appears to work OK and to do what I am after. The steps, in case anybody is searching through this:
1. Install the plugin.
2. Create a page for each branching option that you want - two in my case. Give each of these pages its individual password using Wordpress's standard mechanism.
3. Create a third page to act as a login. Somewhere on this page put the shortcode "[smartpwpages]". Publish this and set it to act as your home page. Make this page a parent page.
4. Make the other password protected pages children of this parent.
5. Test: Users will see whatever you have on the front page. If they enter a password which matches any of the child pages then they will be taken to that page.
The advantages of this approach, to me at least: only need to tell people one simple URL. Site content is protected. Each group of people gets their own experience and need not worry about - or even be aware of - that of the other group.
posted by rongorongo at 10:36 PM on July 9, 2018
1. Install the plugin.
2. Create a page for each branching option that you want - two in my case. Give each of these pages its individual password using Wordpress's standard mechanism.
3. Create a third page to act as a login. Somewhere on this page put the shortcode "[smartpwpages]". Publish this and set it to act as your home page. Make this page a parent page.
4. Make the other password protected pages children of this parent.
5. Test: Users will see whatever you have on the front page. If they enter a password which matches any of the child pages then they will be taken to that page.
The advantages of this approach, to me at least: only need to tell people one simple URL. Site content is protected. Each group of people gets their own experience and need not worry about - or even be aware of - that of the other group.
posted by rongorongo at 10:36 PM on July 9, 2018
« Older Investing for the extremely risk-averse | How best to get a picture of something in another... Newer »
This thread is closed to new comments.
posted by egypturnash at 10:40 AM on July 9, 2018