Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Filter Hook: excerpt_more

Custom “More” to Follow Excerpts

If you’re not a fan of ” […]” or “… Continue reading →” you can easily setup your own “more” text.

add_filter( 'excerpt_more', 'dot_dot_dot', 11 );
function dot_dot_dot( $more ) {
    return '... <a href="'. get_permalink() .'" class="keep_reading">Continue reading &raquo;</a>';
}
Posted on April 28, 2011March 1, 2012Categories WordPress BitsTags excerptLeave a comment on Custom “More” to Follow Excerpts
Proudly powered by WordPress