Forums

Better way to make the_content and the_excerpt look the same? (1 post)

  1. alpha_llama
    Member
    Posted 1 year ago #

    I wanted to make the 'teasers' look the same on my blog which has used different themes over the course of its existence so some posts use <!--more--> tags, some use custom excerpts, and some don't have either. I also wanted to keep some kind of indicator in place that the post summary is being automatically truncated (eg; an ellipsis.)

    So here's the code I put in my functions file:

    Pastebin Link

    I'm thinking there maybe a better way to go about testing for the presence of the <!--more--> link. Perhaps there is a more elegant solution than using strpos() and .more-link. Thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags