Hi Fernando
Great – that has worked, thank you.
I just modified your code slightly to include my exclusion of the read more text from the RSS feed, as was in the original code.
Cheers,
Rachel
add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;
if ( has_excerpt() && ! is_feed() ) {
$output = sprintf( ‘%1$s %3$s‘,
$excerpt,
get_permalink(),
__( ‘Read more’, ‘generatepress’ ),
sprintf(
/* translators: Aria-label describing the read more button */
_x( ‘Read more of the post %s’, ‘more on post title’, ‘generatepress’ ),
the_title_attribute( ‘echo=0’ )
)
);
}
return $output;
}