Adding “read more” link to excerpt
-
I’d like to use the Excerpt feature, but need it to add a “read more” link to the end. I found the following in the Codex, added it to my functions.php, but nothing happened. What am I missing?
Make the “read more” link to the post
Place this in a theme’s functions.php to make the “read more” link to the post
function new_excerpt_more($post) {
return ‘ID) . ‘”>’ . ‘Read the Rest…’ . ‘‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding “read more” link to excerpt’ is closed to new replies.