Created
August 6, 2018 09:33
-
-
Save daviddarke/991347f6fcffc6e90d0e8cfe42918e86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); | |
if ( post_password_required( $post->ID ) ) { | |
echo get_the_password_form(); | |
} else { | |
while ( have_posts() ) : the_post(); | |
$meta = get_post_meta($post->ID); | |
?> | |
<?php echo trim($meta['story_body'][0]); ?> | |
<div id="extraHTML"> | |
<?php echo trim($meta['extra_html'][0]); ?> | |
</div> | |
<style type="text/css"> | |
<?php echo get_option('sh_css'); ?> | |
</style> | |
<?php | |
endwhile; | |
} | |
get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added a
post_password_required()
check and then outputget_the_password_form()
if true.