WordPress.org

Support

Support » Plugins and Hacks » [Resolved] password-protect pages?

[Resolved] password-protect pages?

  • I have a website where we are starting to add pages with content that I want registered users to be able to see, but not non-registered visitors. Only some pages and posts would be affected by this; 90% or more of the site should be visible to everybody.

    I’d like a plugin that would allow me to set this up for individual pages (not one that password-protects the whole blog or only password-protects posts). And, I’d like it to work based on the fact that someone is a logged-in user, not on some separate password-protection.

    Any thoughts or advice? I think I know enough to code a separate template called something like index_pw.php, and check whether the visitor is a logged-in user. If not, I’d deliver one thing “sorry! You must be a registered user to see this page. Registration is free, why don’t you do it now?” plus a link). But if the person is a logged-in user, the site would just show the contents of the page or post.

    But I hate to hard-code it into a template if there’s a plugin that can do it better — I love the plugins! But can’t write one myself.

    Thanks for reading, and I really appreciate any advice.

    -Sara

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] password-protect pages?’ is closed to new replies.