Posted By

Xtraboy on 02/25/10


Tagged

wordpress replace text permalink excerpt


Versions (?)

Replace Excerpt Ellipsis with Permalink


 / Published in: PHP
 

URL: http://css-tricks.com/snippets/wordpress/replace-excerpt-ellipsis-with-permalink/

  1. function replace_excerpt($content) {
  2. return str_replace('[...]',
  3. '<div class="more-link"><a href="'. get_permalink() .'">Continue Reading</a></div>',
  4. $content
  5. );
  6. }
  7. add_filter('the_excerpt', 'replace_excerpt');

Report this snippet  

You need to login to post a comment.