Autogenerated Featured Image for Video Format in CustomPostType

Posted in: Newsmag
Post count: 5

Hi all,
i am using the video format on a custom post type. The youtube video is displayed fine – but the featured image used for category archive could not be generated automatically.

To get the video widget enabled in the cpt I modified following file.
includes/wp_booster/wp-admin/content-metaboxes/td_templates_settings.php

line 62:
‘types’ => array(‘post’, ‘my_cpt’),

line 86:

$my_cpt_key = array_search('my_cpt', $td_custom_post_types);
if($my_cpt_key !== false) {
unset($td_custom_post_types[$my_cpt_key]);
}

After saving the post the attachment is not created and assigned to the post properly. Last but not least it is not display as featured image. I traced the process via xdebug to the point “return new WP_Error( ‘image_sideload_failed’ );”. Do you have any idea what is going wrong?

Thanks & BR Rob

Post count: 23312

Hello la-company,

I suppose that you have made some additional customizations through the code which allows you to add some videos for featured video because of the theme, by default has an option only for the featured image. As you want to achieve involves doing such a custom work and we cannot afford to do this, sorry! Try to implement it yourself and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you!

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.