In Worpdress By default, With excerpt content at the end more string is set […]. If you looking to change exceprt more default string […] by any other ie … yes we can do it by use of excerpt_more filter,
add the following code to your active theme functions.php:
function new_excerpt_more( $more ) { return '[.....]'; // Replace […..] by whatever you want to appear at the end of excerpt content. } add_filter('excerpt_more', 'new_excerpt_more');
To add Read more Link after Post Excerpt ie … Read more.
Add the following code to your active theme function.php :
// Changing excerpt more function new_excerpt_more($more) { global $post; return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More »' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
You must be logged in to post a comment.