PHP
1 2 3 |
if ( !post_password_required() ) { echo 'protected stuff'; } |
More Resources:
http://stackoverflow.com/questions/3054245/how-to-make-a-custom-template-in-wordpress-work-as-a-password-protected-page
http://wordpress.org/support/topic/how-to-password-protect-a-post-not-just-the-content-area
http://wordpress.stackexchange.com/questions/70009/exclude-the-content-from-page-password-protection