Posted By

Bluewall on 03/07/09


Tagged

wordpress


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

nerdfiles
lilumi
tmbrenneke
maxvee8
YA


change the default Wordpress excerpt [...]


 / Published in: PHP
 

URL: http://graphpaperpress.com/2009/02/18/tip-how-to-change-the-default-wordpress-excerpt/

  1. <?php function gpp_excerpt($text) { return str_replace('[...]', '<br /><a href="'.get_permalink().'">Read More &rarr;</a>', $text); } add_filter('the_excerpt', 'gpp_excerpt'); ?>

Report this snippet  

You need to login to post a comment.