Remove “Protected” from in front of post title in a password protected wp post
PHP
1 2 3 4 |
add_filter('protected_title_format', 'blank'); function blank($title) { return '%s'; } |
PHP
1 2 3 4 |
add_filter('protected_title_format', 'blank'); function blank($title) { return '%s'; } |
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