function d5businessline_excerpt_length( $length ) {
global $blExcerptLength;
if ($blExcerptLength) {
return $blExcerptLength;
} else {
return 50; //default value
} }
add_filter( ‘excerpt_length’, ‘d5businessline_excerpt_length’, 999 );
function d5businessline_excerpt_more($more) {
global $post;
return ‘<a href=”‘. get_permalink($post->ID) . ‘” class=”read-more”>Read the Rest…</a>’;
}
add_filter(‘excerpt_more’, ‘d5businessline_excerpt_more’);