Forums

How do you change the [...] in an excerpt to a link? (10 posts)

  1. ultrazero
    Member
    Posted 3 years ago #

    Hello. I hope this is in the right forum.

    My theme uses excerpts on the front page that show my latest blog posts. When a post is too long for the excerpt is will show there is more to read with [...] added to the end of it.

    How can I change it so [...] is a link to that post? Or possibly customize it to something else.

    Thanks

  2. nathanegriffin
    Member
    Posted 3 years ago #

  3. Roy
    Member
    Posted 3 years ago #

    I think you use the_excerpt? You get what you are looking for if you simply use the more tag instead, or an excerpt plugin such as Excerpt Editor.

  4. nathanegriffin
    Member
    Posted 3 years ago #

    @Gangleri
    the_excerpt is not what ultrazero is looking for. There are parameters for the template tag the_content() which will enable ultrazero to customize the look and functionality of the "read more" (or [...] as the case may be)

    The link I provided explains in more detail

  5. ultrazero
    Member
    Posted 3 years ago #

    Thanks guys.

    Actually my template IS using the the_excerpt tag and not the_content.

    Perhaps I should switch it to the_content? Seems more powerful.

  6. Roy
    Member
    Posted 3 years ago #

    Inspite of what Nathan says, I think there is no customising the read-more when you use the_excerpt. I'd just go for a plugin (and use the_content), Excerpt Editor is nicely flexible.

  7. Elpie
    Member
    Posted 3 years ago #

    Actually, you can change the [...] to a clickable read more link. I blogged about this earlier this month here: http://lynnepope.net/the-excerpt-revisited

  8. Raimy
    Member
    Posted 3 years ago #

    Elpie you are an angel! This is exactly what I have been looking for. And so perfectly simple too. Thank you for this.

  9. Elpie
    Member
    Posted 3 years ago #

    Glad it helped Raimy :)

  10. ultrazero
    Member
    Posted 3 years ago #

    exactly what I wanted to do. thank you elpie!

Topic Closed

This topic has been closed to new replies.

About this Topic