Password Protected Page not working

  • None of password protected pages are working. They open as if they were public. I tried removing cookies and other recommendations. It’s frustrating because it’s a nice feature and I really designed the concept I’m working with based on this feature. The behaviour isn’t consistent either. Sometimes a password request shows and other times it doesn’t.

    One my blogs for your reference is: thoughtfarmermario.wordpress.com

    Thank you,

    Mario

    The blog I need help with is: (visible only to logged in users)

  • I can’t see any password-protected posts on that blog at all. Are you sure you Updated after marking them Password-protected? How did you do your password protection, step by step?

  • It’s a page not a post.

  • and what is the URL of the specific page? Make a test page and password protect it and give us the URL starting with http. And please outline the steps you’ve taken to password protect it.

  • Ok. Here is a real page that has the problem. This page is indicated in the Reading Settings as the posts page:

    http://thoughtfarmermario.wordpress.com/wbb-writing-group-1-marios-posts/

    And here is a test page:

    http://thoughtfarmermario.wordpress.com/testing-password-protected-problem/

    The context:

    I have several small blogs, each one for an editor. I’m the administrator of all of them. All posts written by each editor, in their respective small blog, go to one page that is password-protected. All editors have each other’s passwords so that they can provide comments on each other’s texts. Only the editor of a blog can post in that blog. All the others can only comment and send email.

    What I did:

    Created the catch-all posts page in each blog.
    Assigned the page as password-protected.
    Typed the password.
    Clicked OK.
    Clicked Publish.
    In the Reading settings I indicated that that page is the posts page.

    and, of course, I informed each editor of each other’s page’s passwords.

    What I expected:

    All individual posts written by an editor (public posts) would show up in the catch-all posts page, and that is working.

    All the editors would be able to go to each other’s blogs and they would receive a request for the page’s password before being able to see the posts in that page. This isn’t working at all or, sometimes the password is requested but if you click on the blog link, for instance, it will ignore the password request and open the page. This is what isn’t working.

    I hope it helps you to help me :-)

    Thanks,

  • The main post page cannot be password protected whether it is the standard post page, or one that you create and then designate as a “post page under settings > reading. You can password protect individual posts, or pages that you create that are NOT set as the “post” page.

    You will either have to password protect each post, or set the blog to private and then invite only those that you want to view your blog under settings > privacy. You can invite up to 35 users, but over that number you would have to get the paid upgrade which then allows an unlimited number of people as users.

    http://support.wordpress.com/settings/privacy-settings/
    http://support.wordpress.com/unlimited-private-users/

  • Would the concept I tried to implement be a useful suggestion for enhancement? It would be so cool if that could be done. Another suggestion is to inform in the screens and support material of these limitations because in the way it is written (I don’t recall having seen the information you provided anywhere else)it sounds like it’s possible. Would you recommend me to send the suggestions elsewhere or can you take them from here?

    Anyways, thank you so much for your help.

    Mario

  • As far as I can remember, no one has ever asked about it in my two years here answering questions in the forums.

  • Hi,
    You cannot use the default wordpress setting to password protect your static page that you then set as your posts page if you follow.

    You need to set a custom template for your posts page.
    Create a new blank plain text document call it postpage.php and save it within
    /wp-content/themes/**the name of the theme your using/**

    Then when you create the page to show your posts in choose postpage as the template.

    As raw PHP put in the following to the blank text document postpage.php
    so you don’t get your themes formatting with this;

    <?php
    /*
    Template Name: postspage
    */
    ?>
    <?php get_header(); ?>
    <?php
    $lastposts = get_posts();
    foreach($lastposts as $post) :
    setup_postdata($post);
    ?>
    <div class=”item”>
    <h2><?php the_title(); ?></h2>
    <p class=”date”><?php the_time(‘j.m.Y’) ?></p>
    <?php the_content(); ?>
    </div>
    <?php endforeach; ?>
    <?php get_sidebar(); ?>
    <?php include (TEMPLATEPATH . “/footer.php”); ?>

    To add in your themes formatting you’ll need to copy the code from index.php within your themes folder and insert the above php in the right place. This would look something like this:
    <?php
    /*
    Template Name: postspage
    */
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes() ?>>
    <head>
    <?php get_header(); ?>
    </head>
    <body>
    <div class=”main”>
    <div class=”container”>
    <?php include (TEMPLATEPATH . “/head.php”); ?>

    <div class=”content span-24″>
    <div class=”posts span-17 last”>
    <?php include (TEMPLATEPATH . “/banner.php”); ?>

    <div class=”paddings”>
    <?php
    $lastposts = get_posts();
    foreach($lastposts as $post) :
    setup_postdata($post);
    ?>

    <ul class=”items”>
    <h2><?php the_title(); ?></h2>
    <p class=”date”><?php the_time(‘j.m.Y’) ?></p>
    <?php the_content(); ?>

  • <?php include (TEMPLATEPATH . “/item.php”); ?>
  • <?php endforeach; ?>

  • <?php include (TEMPLATEPATH . “/missing.php”); ?>
  • <div class=”navigation”>
    <div class=”fl”><?php next_posts_link(__(‘« Older Entries’, ‘default’)) ?></div>
    <div class=”fr”><?php previous_posts_link(__(‘Newer Entries »’, ‘default’)) ?></div>
    <div class=”clear”></div>
    </div>
  • </div>
    </div>

    <?php get_sidebar(); ?>
    </div>
    <div class=”clear”></div>

    <?php include (TEMPLATEPATH . “/footer.php”); ?>
    </div>
    </div>
    </body>
    </html>