WordPress excerpts doesn’t generate after set post_excerpt to empty string

I’m currently trying to write a new theme for my old website which is based on another WordPress theme.

Today I imported all the posts from the old website to the new one by using XML. As the old excerpts are not uniform with those on the new website, I decided to let WordPress generate excerpts for me.

I used

update wp_posts set post_excerpt='';

in the WordPress database in order to automatically generate all the excerpts, but it didn’t behave as I expected.

The new website didn’t generate excerpts for all the newer posts.

I’m new to the WordPress theme development. I didn’t make any configuration in the function.php for excerpts.

Thanks for help!

Read more here: WordPress excerpts doesn’t generate after set post_excerpt to empty string

Leave a Reply

Your email address will not be published. Required fields are marked *