/ Published in: PHP
Appends a custom more-link to all excerpts, regardless of whether they're auto-generated or pulling manual excerpts from the excerpt field. Note: Automatic excerpts still show the default […] at the end (before the more-link).
Found here: http://themeshaper.com/forums/topic/read-more-link-in-manual-excerpt#post-12992
Found here: http://themeshaper.com/forums/topic/read-more-link-in-manual-excerpt#post-12992
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function all_excerpts_get_more_link($post_excerpt) { return $post_excerpt . ' <a href="'. get_permalink($post->ID) . '">' . 'Read More...' . '</a>'; } add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');