Thursday, November 28, 2013

Customize Excerpt More [...]

// custom excerpt ellipses for 2.9

function custom_excerpt_more($more)

return ‘…’;


add_filter(‘excerpt_more’, ‘custom_excerpt_more’);


/* custom excerpt ellipses for 2.8-

function custom_excerpt_more($excerpt)

return str_replace(‘[...]‘, ‘…’, $excerpt);


add_filter(‘wp_trim_excerpt’, ‘custom_excerpt_more’);

*/



Customize Excerpt More [...]

No comments:

Post a Comment

Please mention your comments.......