elegant themes

Restricting Pages to logged in users

| April 9, 2007 | 0 Comments

redwing studio has a detailed description how to set up a Page in your WordPress blog so that only logged in users can see the content. You can restrict access to a page by making it private, or by using a Role Manager plugin, but this method allows the following:

  • The Page shows up on the navigation bar (it doesn’t with the other methods)
  • If a user tries to view it and is not logged in, you can have the page display whatever you want, such as a login form and/or a message telling them they must log in to see the content (the page just appears blank with the other methods)

To accomplish this, you need to create a unique Page template, and modify the code.

User only/protected pages in WordPress>> 

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Tags: ,

Category: Tips, WordPress as CMS

solostream

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.

More in Tips, WordPress as CMS (83 of 103 articles)