I want to assign the cloudtempletes to the custom post types

Posted in: Newspaper
Post count: 5

Hey,

I have created the custom post type using code function my_custom_post_interviews() {
$labels = array(
'name' => _x( 'Interviews', 'post type general name' ),
'singular_name' => _x( 'Interviews', 'post type singular name' ),
'add_new' => _x( 'Add New', 'book' ),
'add_new_item' => __( 'Add New Interview' ),
'edit_item' => __( 'Edit Interview' ),
'new_item' => __( 'New Interview' ),
'all_items' => __( 'All Interview' ),
'view_item' => __( 'View Interview' ),
'search_items' => __( 'Search Interview' ),
'not_found' => __( 'No Interview found' ),
'not_found_in_trash' => __( 'No Interviews found in the Trash' ),
'parent_item_colon' => '',
'menu_name' => 'Interviews'
);

$args = array(
'labels' => $labels,
'description' => 'Holds our interviews',
'public' => true,
'hierarchical' => true,
'show_ui' => true,
'show_in_nav_menus' => true,
'menu_position' => 5,
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt','author','page-attributes','custom-fields'),

'has_archive' => true,
'show_in_rest' => true,
'taxonomies' => array('category'),
);
register_post_type( 'interviews', $args );

}
add_action( 'init', 'my_custom_post_interviews' );

I want to assign the blog template to this custom post type.

Post count: 21065

Hello @hegroup!

Please note that Cloud library templates do not work with CPTs.
A guide for CPT you can find here: https://forum.tagdiv.com/custom-post-type-support/

Thank you!

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