WordPress.org

Ready to get started?Download WordPress

Forums

Best Way To Make Blog Entries Private? (5 posts)

  1. Lisa W
    Member
    Posted 2 years ago #

    We have a blog that has pages that are designed to be available to any viewer but we want to keep any blog entries private, only for people we know. What is the best way to have the blog entries (not the public pages) hidden or private without making every entry password protected? We currently have an RSS feed for our entries going into a e-mail newsletter format and the password protected entries don't send through the RSS feed with content.

    Is there a way to make the blog entry page protected while leaving the other pages public?

    Thanks ~
    Lisa

  2. FittingSites
    Member
    Posted 2 years ago #

    Set the pages to Private, and then have your users register to your site as a Subscriber (or create a new user in the dashboard for each person, and set their role to Subscriber)

    Private posts are visible to registered users of your site only, public visitors can only see the post title.

    Cheers

  3. Lisa W
    Member
    Posted 2 years ago #

    Thank you, but I still have a question. The pages are designed to be public, it's the blog entries I want to keep private. Can I do that without making each entry password protected, as that affects the RSS feed?

  4. govpatel
    Member
    Posted 2 years ago #

    Yes it can done by creating a members post template using index.php code and use this plugin
    http://wordpress.org/extend/plugins/custom-post-template/
    and you will a have post attribute same you have page attribute on right.

    Using index.php code make change at top and add template name like

    <?php
    /*
    Template Name: Members Posts
    */
    ?>
    <?php if ( $user_ID ) : // if logged in ?>

    at end of code just after footer

    <?php else : // if not logged in go to login page 
    
    	$url = 'register';
    	header("Location:$url"); 
    
    endif; // end if logged in

    save as member-post.php
    Note: You will need to change register to your register page.

    Now when you post you will have choice of template in dropdown.

  5. govpatel
    Member
    Posted 2 years ago #

    on the post above the line Template Name: Members Posts needs to be
    Template Name Posts: Members Posts

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.