Posted By

scottnix on 10/06/11


Tagged

php read categories excerpt more thematic


Versions (?)

Thematic Convert [...] to Read More Link


 / Published in: PHP
 

URL: http://scottnix.com/code/wordpress/thematic-snippets/

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.