Featured Image not displaying
-
I have created a custom post type using your plugin and selected support for featured image. The featured image meta box is not displaying. FYI it doesn’t appear in screen options either.
-
Could you click on the “Get code” link when viewing your post type listings, and pastebin.com the generated code? Perhaps it can let me know of what may be going on.
Also is this a site that you could disable other plugins on? or is it a live site? There could be some odd conflict going on somewhere. Otherwise I’m at a loss for what could be going on.
I have the same issue, the “Featured Image” is checked in the CPT UI but the metabox is not showing when adding a post. I disable all my plugins except for CPT UI and still not showing. Any recommendations? THX.
What version of WP and CPTUI are either of you using?
I am using the 3.9 and 3.9.1 with 0.8.3.
I have another site that is using 0.8.2 and it is working???
I’ve deactivated all plugins but yours and doesn’t help.
I’ll check a few other websites but this has started happening on the last few websites I have been working on and use the same plugins (generally).
Don’t know when you updated to 0.8.3 but could be an issue with update?
Shouldn’t have an issue with the 0.8.3 update because all that update did was change some php functions used for escaping data. Shouldn’t have affected featured images.
Not sure what’s going on as I can’t recreate this issue on my local host. Created a new post type, set the advanced option to include featured images, saved, went to add a new post for that post type, and the featured image metabox is showing up. Something else must be going on somewhere with your setup.
Not sure either but the last two themes I have worked on have had issues with this. I revert back to twenety fourteen theme and it works so obviously theme related but a bit of a worry that this is all of a sudden happening on themes when it has never been an issue before.
About to start another theme so it will be interesting…
http://codex.ww.wp.xz.cn/Function_Reference/add_theme_support use this with conjunction with ‘post-thumbnails’.
Once you mentioned that it only worked for some themes, it hit me 🙂 Let me know if this fixes the issue.
Hi Michael
Thanks for follow up. Pardon my ignorance but I am a beginner still learning!
I use child themes always. Can you suggest what I should be adding or does it vary?
Cheers
Sorry Michael is this relevant when the featured image works on normal posts for this theme?
the add_theme_support() line may be in the parent functions.php file somewhere, but if it passes in 2nd parameters, then I believe it’s going to be limited to just the post types listed as the second parameters.
For example:
add_theme_support( 'post-thumbnails', array( 'post' ) );Ideally, it should only be
add_theme_support( 'post-thumbnails' );in order to register support for all potential post types.Hi Michael
Your a legend! That seems to have worked a treat. There were quite a few other post types in there i have deleted but all looks good.
I appreciate your efforts and happy to say I use your plugin on very site I build.
Cheers
This one had me stumped too. After reading the thread it wasn’t immediately obvious what I needed to do, so in case it helps others –
I’m currently running WP 4.2.2
just adding –
add_theme_support( 'post-thumbnails' )To your theme’s functions.php appears to do the trick.
Stu
The topic ‘Featured Image not displaying’ is closed to new replies.