Replace Excerpt Ellipsis with Permalink

0
0

This is useful if you would like to replace the ellipsis […] from the excerpt with a permalink to the post.

#functions.php addition:

function replace_excerpt($content) {
       return str_replace('[...]',
               '',
               $content
       );
}
add_filter('the_excerpt', 'replace_excerpt');
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.