What to do if after a version upgrade or theme change, you don't see the option to upload a featured image when publishing a post? Don't panic, just add a piece of code to fix it.
When you encounter a situation where the featured image upload entry disappears after a WordPress version update or theme change, it is usually because the theme code does not declare the featured image. Simply copy the following code and add it to the theme's functions.php file.
// 特色图片框
add_theme_support('post-thumbnails');If you don't know how to add it, you can use the following plugin for help:
If you dislike setting featured images manually, you can use the following plugin to automatically set featured images for you: