Add Read More Link To Excerpt Wordpress

Leave a Comment
excerpt_more Filter Hook Wordpress:

The excerpt_more filter hook will help you add Read More link the you want to add. Add the following excerpt_more filter hook script in your functions.php file..

function new_excerpt_more($more) {
    return $more;
}
add_filter('excerpt_more', 'new_excerpt_more');

But you need customize that read more link the way you wanted, then use the followingexcerpt_more filter hook script in your functions.php file to modify read more link.


function new_excerpt_more($more) {
    global $post;
    return 'Continue Reading...';
}
add_filter('excerpt_more', 'new_excerpt_more');

0 comments:

Post a comment