Custom Post Type – Display Post Settings

Posted in: Newspaper
Post count: 31

Hi,

I’ve several custom post types. I would like the “Post Settings” on each one and for it to show up on the custom post type front end.

I’ve figured out how to add the “Post Settings” to each custom post types editing page but I don’t know how to replicate the changes on the front.

For example – http://beta.virtualfestivals.com/event/glastonbury-festival-2002/ – this is a custom post type and is using “Style 3”. I copied single.php and renamed it as single-event.php. I realise I could have copied and renamed single_template_3.php but was hoping for a more flexible solution.

Thanks,

JJ

Post count: 7909

Hi,

For custom post type you have to create a template, you can use structure present in the post template 3. You have to check how the single and loop-single templates are built and start from there. For example single_template_3.php and loop-single-3.php and check the official documentation – https://codex.wordpress.org/Post_Types#Custom_Post_Type_Templates

Thanks!

Post count: 31

Hi,

Thanks for this. This is what I’ve done but it would be excellent if the theme had a lot more support for custom post types.

JJ

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