/ Published in: PHP

Add read more link for wordpress
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function new_excerpt_more($post) { return '<a class="more" href="'. get_permalink($post->ID) . '">' . 'Read the Rest...' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
Comments
