WordPress.org

Support

Support » How-To and Troubleshooting » Can I password protect a page with a custom template?

Can I password protect a page with a custom template?

  • Creating a site for a client who needs to password protect several pages throughout their site, but these pages also need to display news from a particular, member-only category. I’m using a custom page template to limit the results of The Loop, using…
    query_posts('cat=1');

    However, when I view this page, it completely ignores the password assigned to it. Any fix?

    Here’s the page I’m trying to password protect.

Viewing 1 replies (of 1 total)
  • I have the same problem.. I’m pulling in excerpts from several categories to a custom page template, and password-protecting the page does nothing.

    If you resolve this issue, could you please give some notes on how?

    Thanks Shawndh,

    – John

Viewing 1 replies (of 1 total)
  • The topic ‘Can I password protect a page with a custom template?’ is closed to new replies.