Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thefierywell

    (@thefierywell)

    Hey! Sorry for the delay, myself! I’m running 1.4.3 now and everything seems to be fine now! Thank you.

    I ran into this issue as well… the password protection does not protect custom fields, but it’s an easy fix if you get in the Editor and change some code. Would love to see this as a permanent fix.

    Find the line:
    <?php while (have_posts()) : the_post(); ?>

    And under it add:
    <?php if( ! post_password_required()){ ?>

    This is an open if statement which will ask if a password is required to view this page or if the password is already correct.

    Just be sure to close it after

    <footer id="credit"><p><?php echo get_post_meta($post->ID, 'footer_text', true); ?></p></footer>
    </footer>

    with the following:

    <?php } else {
    				get_header();
    				echo get_the_password_form();
    				get_footer();
    			} //end if ?>

    just before
    <?php endwhile; ?>

    the get_header() and get_footer() will call to your original theme’s header/footer.

    You can see my test here:
    https://thefierywell.com/client_projects/test-project/

    Should prompt you with a request for the password, which is “test”. Hope that helps!

    Edit: Updated to show code in formatting.

Viewing 2 replies - 1 through 2 (of 2 total)