WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Password protection not working on custom theme (4 posts)

  1. steve_linn
    Member
    Posted 3 months ago #

    I built a custom wordpress template - when I choose password protect on pages - it does not work on my custom template, however if I switch the template to twenty fourteen it works find.

    I guess that I am missing something on my template, however I am not sure what.

    Any suggestions?

    Thank you

  2. bemdesign
    Member
    Posted 3 months ago #

    Since we can't see your template's code, it will be hard to diagnose what's happening.

  3. JumboClicks
    Member
    Posted 3 months ago #

    you should not need a conditional tag for passworded pages to work but

    this conditional statement applies

    https://codex.wordpress.org/Conditional_Tags#Is_User_Logged_in

  4. steve_linn
    Member
    Posted 3 months ago #

    I figured out my problem - silly mistake

    I was not running a loop on the page - hence there was nothing to protect

    solved

Reply

You must log in to post.

About this Topic