Posted By

scottnix on 10/06/11


php read categories excerpt more thematic

Versions (?)

Thematic Convert [...] to Read More Link

 / Published in: PHP


Converts [...] more link to actual Read More » link.

  1. // add read more on categories to match wp read more
  2. function snix_modify_excerpt($text) {
  3. return str_replace('[...]', ' <a href="'.get_permalink().'" class="more-link">Read more &raquo;</a>', $text);
  4. }
  5. add_filter('get_the_excerpt', 'snix_modify_excerpt');

Report this snippet  

You need to login to post a comment.