lisaleague
11/15/2014 - 2:41 PM

Force excerpt read more regardless of length

Force excerpt read more regardless of length

<?php

function new_excerpt_more($more) {
       global $post;
	return '';
}
add_filter('excerpt_more', 'new_excerpt_more');

//Force the read more link on an excerpt regardless of the excerpt length

//Read More Button For Excerpt
function themprefix_excerpt_read_more_link($output) {
	global $post;
	return $output . ' <a href="' . get_permalink($post->ID) . '" class="more-link" title="Read More">Read More</a>';
}
add_filter( 'the_excerpt', 'themprefix_excerpt_read_more_link' );