Custom post type – single10 – no video input option

Posted in: Newspaper
Post count: 42

I follows this https://forum.tagdiv.com/custom-post-type-support/

I wanted to use single template 10 for a custom post type. Template 10 is a video template where you can usually choose to make it a video post and then paste the link to the video however these options are not available when in my custom pst type. So when videoing the post the shaded area at the top where the video would go empty.

I checked the screen options but there isn’t anything in there.

Any pointers?

Post count: 42

Ok so after screwing around for a bit I have the following functions that make everything but the selector for it being a video post. So without that I can’t set it to show the video over the features image. Here is what I have

add_action(‘init’, ‘register_theme_metaboxes’, 10000);
function register_theme_metaboxes() {
include_once get_template_directory() . ‘/includes/wp_booster/wp-admin/external/wpalchemy/MetaBox.php’;
new WPAlchemy_MetaBox(array(
‘id’ => ‘td_post_theme_settings’,
‘title’ => ‘Post Settings’,
‘types’ => array(“sfwd-lessons”),
‘priority’ => ‘high’,
‘template’ => get_template_directory() . ‘/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php’,
));
}

add_action(‘init’, ‘register_post_metaboxes’, 10000);
function register_post_metaboxes() {
include_once get_template_directory() . ‘/includes/wp_booster/wp-admin/external/wpalchemy/MetaBox.php’;
new WPAlchemy_MetaBox(array(
‘id’ => ‘td_page’,
‘title’ => ‘Page template settings’,
‘types’ => array(“sfwd-lessons”),
‘priority’ => ‘high’,
‘template’ => get_template_directory() . ‘/includes/wp_booster/wp-admin/content-metaboxes/td_set_page.php’,
));

new WPAlchemy_MetaBox(array(
‘id’ => ‘td_post_video’,
‘title’ => ‘Featured Video’,
‘types’ => array(“sfwd-lessons”),
‘priority’ => ‘low’,
‘context’ => ‘side’,
‘template’ => get_template_directory() . ‘/includes/wp_booster/wp-admin/content-metaboxes/td_set_video_meta.php’,
));

new WPAlchemy_MetaBox(array(
‘id’ => ‘td_homepage_loop’,
‘title’ => ‘Homepage latest articles’,
‘types’ => array(“sfwd-lessons”),
‘priority’ => ‘high’,
‘template’ => get_template_directory() . ‘/includes/wp_booster/wp-admin/content-metaboxes/td_set_page_with_loop.php’,
));
}

Post count: 7909

Hi,

The theme was designed to work with post type and also the backend settings. The custom post type support is still in development and like you can see in the cpt documentation the example provided has minimum settings – https://forum.tagdiv.com/custom-post-type-support/ If you want the default settings for it you will need additional customization. We would have gladly made it for you, but the time doesn’t allow us to offer custom work, sorry!

Thanks!

Post count: 42

I’m not asking you to do this for me, I am reasonable, lol.

Can you just point me in the right direction. Like “look in this file” or something like that.

Post count: 7909
Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.