• How do I modify the password protected portion so that instead of “This post is password protected. To view it please enter your password below:”, I can put in the excerpt portion of the entry which will have my customized password hint.

    From within wp-includes/post-template.php, I’ve tried just replacing the text portion of that with “get_the_excerpt()” but I’m getting a syntax error. Plus I think it might be cyclical cause get_the_excerpt() refers to post password stuff.

    I know this topic’s been visited before but it seems like there hasn’t been much activity since.

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I looked and looked for a way to show an excerpt preview of password protected posts and finally found this tutorial on the web, and it worked, just edit the parts of the file they say to edit, and then on your password protected posts put the tag:

    <!–more–> right after the part you want to be the excerpt, and above the part you want to be password protected (or under your password hint, and before your entries body text)

    https://www.dagondesign.com/articles/show-the-intro-to-password-protected-posts-in-wordpress/

    Now does anyone know why when you enter the password to view my password protected entries, it takes you back to the main page rather than to the entry itself? HELP!! lol

    Hi, I resolved this issue and Im posting the resolve, in case anyone else has come across this problem:

    The issue was that I did not have a “single.php” file in my layout, once I added that the problem was resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customized hint for protected entries’ is closed to new replies.