Hi - something in the SoulMedic theme keeps preventing the Featured Image metabox from showing up on the “Add New?? pages of all my custom post types created with Toolset. If I switch to Twenty Fourteen, it works fine. So it's not an issue with your code.
I've contacted SouldMedic support, but all they said is "Sorry! We have not tested our theme with any third party plugins other than the plugins listed in themeforest page."
Can you help me debug this at all? Thanks!
Dear Tom,
Its a bit difficult without being able to see the source code for the theme. You can share access to your Dashboard using the boxes below the comment area, after you agree to the disclaimer.
Regards,
Caridad
Dear Tom,
Its a bit difficult without being able to see the source code for the theme. You can share access to your Dashboard using the boxes below the comment area, after you agree to the disclaimer.
Regards,
Caridad
Thanks, much appreciated. I have granted you WP admin and SFTP access. This is a staging / dev site, so feel free to poke around.
Let me know if you need anything else.
Dear Tom,
I have been able to replicate your problem and asked the developers for help. I will get back to you when I have more information.
Regards,
Caridad
Dear Tom,
Your theme has some code to disable featured images for posts, see attachment. I suspect this setting has something to do with your problem.
You can ask your theme author if their theme supports custom post types with thumbnails, because this is WordPress functionality:
http://codex.wordpress.org/Function_Reference/register_post_type
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Regards,
Caridad
Thanks for looking into this. I've gone back to the theme developers, but I doubt they will provide much assistance.
Hi tomK-2,
Could you post a downloadable URL for your theme SoulMedic?
I need test and debug in my localhost, thanks
Hey Luoy - grab the theme here:
hidden link
###
Also, here is what I asked the SoulMedic developer:
Can you provide guidance on how to add your Post Options meta box to custom post types? Where can I find the code that determines what post type gets what meta boxes?
Their answer:
1) Kindly check the file “wp-content/plugins/designthemes-core-features/custom-post-types/metaboxes/dt_portdolio_default_metabox.php?? for adding “custom meta boxes?? for your custom post types.
2) Also check the file “wp-content/plugins/designthemes-core-features/custom-post-types/dt-portfolio-post-type.php?? for how saving the “meta box?? values.
###
Your help is much appreciated. Let me know if you need anything else.
I have been able to duplicate same problem in my localhost, but the featured-image-metabox isn't a custom meta boxes, it is a build-in feature of wordpress,
http://codex.wordpress.org/Function_Reference/register_post_type#Parameters
Please try add codes in your theme/functions.php:
add_action('after_setup_theme', 'my_theme_features', 11);
function my_theme_features(){
add_theme_support('post-thumbnails', array(
'my-posttype-slug-1',
'my-posttype-slug-2'
));
}
Please replace my-posttype-slug-1 and my-posttype-slug-2 with your custom post type slugs
Thanks for pointing me in the right direction. I looked at functions.php, which which directed me to /framework/include.php and that in turn pointed me to /framework/theme_features.php. And in that file I simply added my custom post type slugs (provider & location) to the array like so:
// Add theme support for Featured Images
add_theme_support('post-thumbnails', array(
'post',
'page',
'product',
'tribe_events',
'provider',
'location'
));
Done!
Thanks again for your help. I know it's not fun to deal with other people's themes and code. Much appreciated.