WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] password-protect pages? (4 posts)

  1. scormeny
    Member
    Posted 7 years ago #

    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

  2. LostInNetwork
    Member
    Posted 7 years ago #

    I'm using a plugin called "Page restriction" with WordPress 2.0. It makes selected pages available for logged in users only. It might need a few changes for WP2.1

    Check this:

    http://17thdegree.com/archives/2005/07/01/wordPress-plugin-page-restriction/

  3. LostInNetwork
    Member
    Posted 7 years ago #

    I don't know "Page levels", but it might be usefull. Have a look at it, too.

  4. scormeny
    Member
    Posted 7 years ago #

    LostInNetwork, it looks like Page Restriction is indeed the beast I need. Thank you very much for the referral!

    -Sara

Topic Closed

This topic has been closed to new replies.

About this Topic