theme development - Moved a website and excerpts don't work for old posts

admin2025-06-02  1

I moved a WordPress website to a different host and all post excerpts stopped working in the blog list.

When I make a new post they appear fine but doesn't show for the old posts.

I peaked into the source code and the theme uses,

<?php echo wp_kses_post(get_the_excerpt()); ?>

to display them.

What can I do?

I moved a WordPress website to a different host and all post excerpts stopped working in the blog list.

When I make a new post they appear fine but doesn't show for the old posts.

I peaked into the source code and the theme uses,

<?php echo wp_kses_post(get_the_excerpt()); ?>

to display them.

What can I do?

Share Improve this question asked Feb 28, 2019 at 13:58 nshunznshunz 1151 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

First of all, you can check your old post excerpt field empty or not. Second thing disabling all your plugins and then reactivate them. Third, you can use more tag on your post

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748854649a314277.html

最新回复(0)