On my Wordpress blog I use excerpts a lot. On my homepage I want a "read more..." on the same line as the text(without CSS), however I do not want it on my news page like that. I found this code which does exactly what I want but it applies it to all the excerpts. How do I have it just do this on the Homepage?
function new_excerpt_more( $more ) {
return ' <a class="read-more" href="'
. get_permalink( get_the_ID() )
. '">Read More...</a>';
}
add_filter( 'excerpt_more', 'new_excerpt_more' );