/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function gpp_excerpt($text) { return str_replace('[...]', '<br /><a href="'.get_permalink().'">Read More →</a>', $text); } add_filter('the_excerpt', 'gpp_excerpt'); ?>
URL: http://graphpaperpress.com/2009/02/18/tip-how-to-change-the-default-wordpress-excerpt/
Comments
