Change WordPress read more text

Question

I’ve tried a ton of ways to do this but can’t figure it out. I need to change the read more text on only one category of post type. (I’ve already added a function to recognize the category as a body class, but right now I can’t even get the code to change the read more text across all the blog archive areas (I think because my theme is using a theme specific section for these.)

Here’s what I tried to do first, which just added a new button above the read more button instead of replacing it:

function new_excerpt_more($more) {
// edit here if you like
return ‘Hear This Episode’;
} add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

I’ve also tried at least a dozen other options with no results at all.

0
Michelle 2 months 0 Answers 12 views 0

Leave an answer