• Resolved jmy1138

    (@jmy1138)


    I seem to be having an issue with password protection on pages, and cannot seem to resolve the issue. I know the issue is theme specific, b/c when changing over to TwentyThirteen is works as expected. I have tried the following:

    • Deactivated all plugins
    • Uploaded fresh wp-admin and wp-include wp folders
    • Repaired database

    The password protection feature is simply not showing up, and the page is accessible.

    Any ideas on how to resolve this?

    Best Regards,
    Jon

Viewing 7 replies - 1 through 7 (of 7 total)
  • What theme are you using? Where did you download it from?

    Thread Starter jmy1138

    (@jmy1138)

    Its a theme I created, using Underscores as a basis.

    Thread Starter jmy1138

    (@jmy1138)

    Here is the basis theme’s URL: http://underscores.me/

    I can also try uploading an unaltered version of this basis theme, switching to it and seeing if the issue is still occurring. If it is still happening, is there a way to test if password protection is enabled properly in the theme?

    Just checked in my _s custom theme and password protection is working fine on Posts for me.

    Thread Starter jmy1138

    (@jmy1138)

    Thanks for checking Esmi. Any ideas in regards to how I could troubleshoot?

    Thread Starter jmy1138

    (@jmy1138)

    I figured out the issue: I am using a custom page template in which all content is being pulled in from Custom Fields, and therefore being contained within the_content();. Therefore, there was no need for this template tag, and when the page had password protection enabled, nothing happened.

    Now, its time to figure out how to password protect a custom page template full of custom fields!

    Thread Starter jmy1138

    (@jmy1138)

    Here goes the solution:

    <?php if ( post_password_required() ) {

    echo get_the_password_form();

    } else { ?>

    ‘Password Protected Custom Content’

    <?php } ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Password Page Protection Not Working — Theme specifc’ is closed to new replies.