Advanced post slider is a wonderful plugin that allows you to display not only excerpts from posts but also from pages as a slideshow wherever you want through shortcodes (perfect for homepage for example).
Everything is nice and customizable but it bugged me that there was no option to insert a “Read more” link or button below the excerpt. The title of the displayed post or page is clickable and links nicely to the corresponding content but…. come on, we need a “read more” button there….
So, after a quick search in the web I found a nice and easy solution. I wanted to post this solution in two topics within the wordpress forums about this specific problem for this plugin, but the topics were closed, unanswered, so here comes the answer in my blog.
Open your functions.php file and paste these lines of code:
function new_excerpt_more($more) {
global $post;
return '… <a class="readpost" href="'. get_permalink($post->ID) . '">' . 'Read More »' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
This will replace the […] after the excerpt with a read more link. I have added an extra “readpost” class for the link so that you can style it easily through css.