Troubleshooting Missing Featured Images with Custom Post Type UI
Content
One of the most common issues users encounter with the Custom Post Type UI plugin is the Featured Image meta box disappearing from the WordPress admin screen. This can happen on both default posts/pages and custom post types. Based on community reports, this guide will walk you through the most effective troubleshooting steps to resolve this problem.
Why Does This Happen?
The Featured Image meta box can disappear for several reasons related to how Custom Post Type UI registers post type support and interacts with other parts of WordPress:
- Plugin or Theme Conflicts: Another plugin or your theme might be interfering with the post-thumbnail support.
- Screen Options: The meta box might be accidentally hidden in the Screen Options tab.
- Editor Type: Some users report the meta box appears in the Block Editor (Gutenberg) but not the Classic Editor.
- Registration Timing: The post type might be registered before the theme has declared support for post thumbnails.
How to Fix Missing Featured Images
1. Verify Basic Settings in CPTUI
First, ensure 'thumbnail' is checked in the "Supports" section for your custom post type within the CPTUI settings. Save your post type settings even if they appear correct, as this can refresh the registration.
2. Check Screen Options
On the post edit screen, click the "Screen Options" dropdown in the top right corner. Ensure the checkbox next to "Featured Image" is ticked. This is a frequently overlooked setting.
3. Confirm Theme Support
Your theme must explicitly declare support for post thumbnails. This is typically done in the theme's functions.php file. The basic declaration is:
add_theme_support( 'post-thumbnails' );
For more targeted support that includes your CPTUI post types, you can use this code snippet:
function my_cptui_featured_image_support() {
$cptui_post_types = cptui_get_post_type_slugs();
add_theme_support( 'post-thumbnails', $cptui_post_types );
}
add_action( 'after_setup_theme', 'my_cptui_featured_image_support' );
4. Test for Conflicts
Conflicts are a common cause. To test:
- Temporarily switch to a default WordPress theme like Twenty Twenty-One.
- Deactivate all plugins except Custom Post Type UI.
- Check if the Featured Image meta box reappears.
- If it does, reactivate your plugins and theme one by one to identify the culprit.
5. Check Your Editor
Some users have found the Featured Image meta box is visible in the Block Editor but hidden in the Classic Editor. Try switching editors to see if this resolves the issue temporarily while you search for a more permanent fix.
6. Clear Caches
If you use any caching plugins or server-level caching, clear all caches after making any of the changes above. A stale cache can sometimes prevent UI changes from appearing.
Adding Featured Image Columns to Admin Lists
A related request is to display the featured image in the admin list table for posts. Custom Post Type UI does not include this functionality, but it can be achieved with a dedicated plugin like Featured Image Admin Thumb or with custom code that adds a column to the display.
When to Seek Further Help
If you have tried all the steps above and the Featured Image meta box is still missing, the issue may be highly specific to your site's configuration. The Custom Post Type UI team suggests providing your exported post type settings (found under CPT UI > Tools) when seeking help in community forums, as this allows others to replicate your setup for testing.
Related Support Threads Support
-
Add galleryhttps://wordpress.org/support/topic/add-gallery-3/
-
Featured Images – disappearhttps://wordpress.org/support/topic/featured-images-disappear-3/
-
Cannot add Featured Image in CPT UI Posthttps://wordpress.org/support/topic/cannot-add-featured-image-in-cpt-ui-post/
-
add image in the list table adminhttps://wordpress.org/support/topic/add-image-in-the-list-table-admin/
-
feature image didn’t appear in admin areahttps://wordpress.org/support/topic/feature-image-didnt-appear-in-admin-area/
-
Featured Image Panel Missing in Both Posts and CPTs when CPT UI is activatedhttps://wordpress.org/support/topic/featured-image-panel-missing-in-both-posts-and-cpts-when-cpt-ui-is-activated/
-
Locationhttps://wordpress.org/support/topic/location-23/
-
Featured Image unable to activatehttps://wordpress.org/support/topic/featured-image-unable-to-activate/
-
Supports not showing up in Class Editorhttps://wordpress.org/support/topic/supports-not-showing-up-in-class-editor/
-
Can’t see “feature image” form in back endhttps://wordpress.org/support/topic/cant-see-feature-image-form-in-back-end/
-
When activate CPT UI plugin backend Featured Image upload options not showinghttps://wordpress.org/support/topic/when-activate-cpt-ui-plugin-backend-featured-image-upload-options-not-showing/
-
Featured image, when categorising CPTshttps://wordpress.org/support/topic/featured-image-when-categorising-cpts/
-
I can not post a featured image when I activate CPT UIhttps://wordpress.org/support/topic/i-can-not-post-a-featured-image-when-i-activate-cpt-ui/
-
Option or field for category image neededhttps://wordpress.org/support/topic/option-or-field-for-category-image-needed/
-
Featured Imagehttps://wordpress.org/support/topic/featured-image-520/
-
Resizing featured imagehttps://wordpress.org/support/topic/resizing-featured-image-4/
-
Support for Featured Video on My Videos CPThttps://wordpress.org/support/topic/support-for-featured-video-on-my-videos-cpt/
-
Multiple featured images?https://wordpress.org/support/topic/multiple-featured-images-5/