Excerpt read more link
-
Topic
-
Hi guys!
I can add a “Read more” link after the post excerpt via the functions file:
function excerpt_read_more_link($output) { global $post; return $output . '<a href="'. get_permalink($post->ID) . '"> [...]</a>'; } add_filter('the_excerpt', 'excerpt_read_more_link');
This puts the read more link […] below the excerpt in a separate paragarph. Is it possible, via the function to place it right after the last word in the excerpt?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.