Hi All,
I've been using this function from Helgatheviking (thanks!), but I would like to see the link text read the destination page (or post) title instead of "Continue Reading. I am a php cut 'n paster :-( Tips?
// excerpt read more links and wrap excerpt in p tag
function all_excerpts_get_more_link($post_excerpt) {
if ( has_post_thumbnail() ) {
$child_excerpt = the_post_thumbnail( 'thumbnail' ) . '<p>' . $post_excerpt . '</p>' . '<p class="readmore"><a href="'. get_permalink($post->ID) . '">' . 'Continue Reading »' . '</a></p>';
}
else {
$child_excerpt = '<p>' . $post_excerpt . '</p>' . '<p class="readmore"><a href="'. get_permalink($post->ID) . '">' . 'Continue Reading »' . '</a></p>';
}
return $child_excerpt;
}
add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');