Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Page
- *
- */
- global $post;
- if ( ! post_password_required( $post ) ) {
- get_header();
- ?>
- div id="Content">
- <div class="content_wrapper clearfix">
- secured content here
- /div>
- </div>
- ?php
- get_footer();
- }else{
- // we will show password form here
- echo get_the_password_form();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement