change the default Wordpress excerpt [...]


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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'); ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.