Hi @wifsster
add this function
function new_excerpt_more($more) {
global $post;
return ' <a href=" ' .get_permalink($post->ID). '" class="read-more">' . 'Read more >' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
to functions.php file in your Customizr child theme folder.
Thank you @tomaja, it’s working intermittently, Could be because some of my blog articles are very short, however the first article in my blog is quite long and the “read more” link is not showing there. I’ve added the link to the blog below for you to take a look. Your assistance is greatly appreciated.
http://www.wifss.ucdavis.edu/?page_id=17
If you are using manual excerpts you need to add the following code(i mean if you are using excerpt meta box),
function childtheme_excerpt_read_more_link($output) {
global $post;
return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>';
}
add_filter('the_excerpt', 'childtheme_excerpt_read_more_link');
If you are using both types(Generated and manual) you need to add like this whole code in functions.php of child theme:
<?php
function childtheme_excerpt_more($more) {
global $post;
return ' ';
}
add_filter('excerpt_more', 'childtheme_excerpt_more');
function childtheme_excerpt_read_more_link($output) {
global $post;
return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>';
}
add_filter('the_excerpt', 'childtheme_excerpt_read_more_link');
?>
Thanks to you both @tomaja and @bravokeyl , it’s working great, You are greatly appreciated.
-@wifsster