Enable Individual post template settings on custom post type

Posted in: Newspaper
Post count: 2

Hello ,

We can only select the following options on custom post type :
– Sidebar left
– Sidebar right
– No sidebar

I would like to use the post settings meta box on my custom post type.
How can we enable the Individual post template settings on custom post type ?

My custom post :
register_post_type(
‘Galerie’,
array(
‘labels’ => array(
‘name’ => __(‘Galeries’),
‘singular_name’ => __(‘galerie’)
),
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘query_var’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘menu_position’ => null,
‘taxonomies’ => array(‘category’, ‘filter’, ‘post_tag’),
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘page-attributes’, ‘custom-fields’, ‘post-formats’, ‘author’)
)
);

Thanks,

Post count: 35449

Hi,

By default the custom post types will use the default post template. You can create a custom template for each custom post type (based on the other post template styles), as mentioned in this guide (at the bottom)
https://forum.tagdiv.com/custom-post-type-support/

In the theme the settings and options for custom post types are limited, they will not share the same options as default post types, or the cloud library templates. Maybe this will chnage in the future and more features will be added.

Thanks

Post count: 2

Hello,

It’s working well using the single-template files.

Thanks for your help

Regards

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