/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// excerpt read more links and wrap excerpt in p tag function all_excerpts_get_more_link($post_excerpt) { return '<p>' . $post_excerpt . '</p>' . '<p class="readmore"><a href="'. get_permalink($post->ID) . '">' . 'Continue Reading »' . '</a></p>'; } add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');