Site logo

Archived topic

why it's like this?

5 replies · Started by Shami on December 11, 2022

Viewing posts 1–6 of 6

please take a look at the image of my archive.

Why the "read more" buttons are looking different for different posts?

I used a custom snippet earlier to show the button.

this snippet is for adding "read more" despite using custom excerpt in the blog archive section:

add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;

if ( has_excerpt() ) {
$output = sprintf( '%1$s <p class="read-more-container"> Start Reading </p>',
$excerpt,
get_permalink()
);
}

return $output;
}

Note: I also cleared all my cache, the problem still remains.

sure

Oh I see, I totally forgot about it. 😅 Thanks for reminding me.

You're welcome, Shami! :)

This archived topic is closed to new replies.