Changing excerpt more


If you want to change the way the excerpt is displayed you can use to two new filters for excerpt, see http://wpengineer.com/1684/wordpress-2-9-new-excerpt-filters/ for details

For example if you want to change the excerpt more from [..] to “Read more” just add to  your theme functions.php the following

// Changing excerpt more

function new_excerpt_more($more) {
global $post;
return '… ' . __('Read More') . '';
}
add_filter('excerpt_more', 'new_excerpt_more');

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s