Fix: Custom Post Type Not Showing in Auto Featured Image
This article explains why a custom post type (such as a WooCommerce product, portfolio item, or event) may be absent from the Auto Featured Image settings list and how to add the missing thumbnail support so auto-generation can be enabled for it.
Issue: Custom Post Type Not Showing
Possible Causes:
❌ CPT not registered with thumbnail support ❌ CPT registered after plugin loads ❌ CPT is private/not public
Solutions:
Solution 1: Add Thumbnail Support Manually
Add to theme's functions.php:
php
add_action('init', function() {
add_post_type_support('your_cpt_name', 'thumbnail');
}, 11); // Priority 11 ensures it runs after CPT registrationReplace your_cpt_name with actual CPT slug.
Solution 2: Modify CPT Registration
If you control CPT registration:
php
register_post_type('portfolio', array(
'supports' => array(
'title',
'editor',
'thumbnail', // ← Add this
'excerpt'
),
// ... other args
));Solution 3: Force Enable via Filter
php
add_filter('afi_enabled_post_types', function($post_types) {
$post_types[] = 'your_cpt_slug';
return $post_types;
});