WordPress.org

Forums

How To Use Passwords in Posts (6 posts)

  1. vagabondish
    Member
    Posted 1 year ago #

    Hello,

    I am looking for a solution to the following problem.

    I would like to offer those who have signed up to my newsletter on my blog additional content. The content would be, for example, an extended version of an interview (as a post), where-as the non-subscriber would see only the short version of an interview (as a post).

    What is the best way to give subscribers access to certain posts or pages, while hiding access to these posts/pages to non-subscribers? I thought about creating two posts for each interview, and sending subscribers a password that would be required to unlock the access to specific posts using the "password protected" option in the edit post screen.

    Is there another option that I am not thinking of?

    Thanks
    Russ

  2. Simon Vandereecken
    Member
    Posted 1 year ago #

    You can include this code ( http://pastebin.com/WTCyrsB1 ) in your functions.php wich will allow you to use a members shortcode. The part you'll put in this shortcode will be invisible to non-members of your website :)

  3. vagabondish
    Member
    Posted 1 year ago #

    thanks nithou, but my page does not require log-ins. my email subscribers are people who have just signed up to receive my email newsletter. I'm not sure how this would differentiate non-subscribers from subscribers.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    What is the best way to give subscribers access to certain posts or pages, while hiding access to these posts/pages to non-subscribers?

    Password protect the post and then send out the password via your email newsletter.

  5. Craig de Gouveia
    Member
    Posted 1 year ago #

    The easiest way to password protect your posts is to click on Pages, hover over a page you want to protect, and click on Quick Edit. There it will allow you to type in a password, which you can send to your subscribers. Click Update and you're good to go.

  6. vagabondish
    Member
    Posted 1 year ago #

    Thanks for your responses esmi and Craig. I think I am going to do this:

    - Create two posts...one is password protected (subscribers will get that password via email) which includes the full-length interview, the second is unprotected, and includes the short interview.
    - The unprotected post will be the short interview, with links directing the reader to the full-length interview, and letting them know they need to subscribe to receive the password via email.

    If anybody knows a way to collapse content in a single post, and make the collapsed portion password protected, that would be ideal so I don't have to create two posts.

    Thanks
    Russ

Topic Closed

This topic has been closed to new replies.

About this Topic