Site logo

Archived topic

Excerpt 0 in archives for posts that have a Read More tag in the Post Editor

3 replies · Started by Alexandra on November 15, 2020

Viewing posts 1–4 of 4

Hey guys,

I have a quick question, please.
I have set the Excerpt word count to 0 in the Customizer, but an excerpt is still showing on archive pages.
Sample archive page
I have figured out that this only happens with older posts that were created with the Classic Editor, where I was manually inserting a Read More tag.
How can I have no excerpt for those posts in archives without having to manually edit each of those posts to remove the Read More tags?
Thank you so much!

Hi there,

yes when using the More Tag it overrides the auto excerpt, try adding this PHP snippet to stop that from happening:

add_filter( 'generate_more_tag', '__return_empty_string' );

Hi, David!
A big, big thank you for this! :)
You have helped me save hours of work!

Glad to be of help :)

This archived topic is closed to new replies.