Support » Fixing WordPress » Better way to make the_content and the_excerpt look the same?

  • 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?

  • The topic ‘Better way to make the_content and the_excerpt look the same?’ is closed to new replies.