Forums

customized hint for protected entries (4 posts)

  1. prandom3
    Member
    Posted 6 years ago #

    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!

  2. edith
    Member
    Posted 5 years ago #

    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)

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

  3. edith
    Member
    Posted 5 years ago #

    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

  4. edith
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic