ThemeShaper Forums » ThemeShaper WordPress Themes

Remove ellipsis from excerpt

(2 posts)
  • Started 10 years ago by micahcooksey
  • Latest reply from Chris
  • This topic is not resolved
  1. Hi, how would I replace the [...] in the excerpt with a read more link?

    I tried the following:
    function elpie_excerpt($text)
    {
    return str_replace('[...]', 'ID) . '">' . '[Read More …]' . '', $text);
    }
    add_filter('thematic_use_excerpt', 'elpie_excerpt');

    Posted 10 years ago #
  2. Hi,

    try this one instead :)

    function excerpt_ellipse($text) {
       return str_replace('[...]', ' <a href="'.get_permalink().'">Read more ...</a>', $text);
    }
    add_filter('get_the_excerpt', 'excerpt_ellipse');

    Chris
    Chris

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.