Skip Navigation

[Resolved] Missing Featured Image Metabox

This support ticket is created 9 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 3 voices.

Last updated by tomK-2 9 years, 4 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#218461

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!

#218516

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

#218517

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

#218522

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.

#218654

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

#218683
soulmedic.png

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

#218776

Thanks for looking into this. I've gone back to the theme developers, but I doubt they will provide much assistance.

#219589

Hi tomK-2,

Could you post a downloadable URL for your theme SoulMedic?
I need test and debug in my localhost, thanks

#219785

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.

#219921

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

#220001

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.