Remove Ellipses from Excerpt

You haven’t added the second filter, at least not in the code posted. If used, that filter will not print ellipses.

// Changing excerpt more
function new_excerpt_more($more) {
  global $post;
  remove_filter('excerpt_more', 'new_excerpt_more'); 
  return ' <a class="read_more" href="'. get_permalink($post->ID) . '">' . 'read more' . '</a>';
}
add_filter('excerpt_more','new_excerpt_more');

Notice the couple of changes I made to that function.

If you just want to strip the ellipses:

add_filter('excerpt_more','__return_false');

Leave a Comment