Forums

[resolved] The_excerpt and "Read more..." (4 posts)

  1. sailormarcus
    Member
    Posted 2 years ago #

    I noticed that there isn't any parameter for the_excerpt, like there is for the_content, where you can get a "Read more" link. I'm using the_excerpt but I'd still love to have a "read more" link at the end of every excerpt. I tried and doing it manually but the "Read more"-link always got one line below the rest of the entry.

    I.e. instead of

    Bla bla bla bla very interesting article bla bla bla bla Read More...

    I get

    Bla bla bla bla very interesting article bla bla bla bla
    Read More...

    Any ideas on what to do?

  2. webzen
    Member
    Posted 1 year ago #

    I want to do the exact same thing and I don't see any resolution (why is this marked "resolved"?). In fact, I don't even get as far as the original poster. I can't generate a "read more" link anywhere while using the_excerpt tag. What is the solution?

  3. webzen
    Member
    Posted 1 year ago #

    I have a solution but this is simply not allowing me to post the code, backticks or not.

  4. Signal Blog
    Member
    Posted 1 year ago #

    wp-includes\formatting.php

    find : array_push($words, '[...]');
    (line 839)

    replace with: array_push($words, '[<a href=\"' . the_permalink() .'\" rel=\"bookmark\">Read more...</a>]');

    http://www.signalblog.com
    Vu D. Hung

Topic Closed

This topic has been closed to new replies.

About this Topic