Forums

Password protected post modifications (4 posts)

  1. adminmgfra
    Member
    Posted 1 month ago #

    I am trying to figure out how to change the text inserted in a password protected post from "This post is password protected. To view it please enter the password bellow" to anything I want. I know there have been postings on this before, but cant find one for the latest version of wordpress (2.8.4) and the previous postings dont seem to solve it on the latest version. I am using a modified neoclassical template. site is www.mgfra.org

    Thanks,
    Peter

  2. mfields
    Member
    Posted 1 month ago #

    Just answered a similar question here:
    http://wordpress.org/support/topic/323715?replies=2

  3. adminmgfra
    Member
    Posted 1 month ago #

    Thanks for the help on that. I was able to change the text, but is there a way to change the bold print stating "Protected: page title" ?

    Thanks again,
    Peter

  4. mfields
    Member
    Posted 1 month ago #

    This should work if your language is English:

    add_filter( 'protected_title_format', 'proctected_post_title_override' );
    function proctected_post_title_override( $c ) {
    	return str_replace( 'Protected: ', '', $c );
    }

Reply

You must log in to post.

About this Topic