Support » Fixing WordPress » password protecting the blog itself

  • when the home page is a static page, and not the default blog index? that may have nothing to do with it, but anyway.

    Here is the site.

    I made a static page the home page so that I could hide the blog from public viewing by password protecting the blog page. From the static home page, the blog archives & categories are linked. However, even though the blog page is password protected, the posts come up. Does it have something to do with the showposts line? This is the opening code snippet from the page we set up as the blog page:

    <?php
    /*
    Template Name: Blog
    */
    ?>
    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php query_posts("showposts=10"); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <div class="post">
    <h2 id="post-<?php the_ID(); ?>" etc etc etc

    I have two sites that are dependent on password protecting certain posts and/or pages. So far I haven’t gotten it to work on either of them. I really like WP, and would love to get this resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘password protecting the blog itself’ is closed to new replies.