Skip Navigation

[Closed] Create a custom template via single_ php

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 11 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2559481

Hello,
I'm developing a site from scratch and I'm using understrap, for the pages related to Templates for individual Post Types I need to create ad hoc.

I read on the net that you use the single.php page, is it possible to create one and assign it to the Post Type?
Thanks
Alexander

#2559927

Christopher Amirian
Supporter

Languages: English (English )

Hi Alexander,

You simply can add a content template in Toolset and assign it to the single post type:

https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/

If you want to add PHP code to that content template you can create a shortcode and add that shortcode to the content template:

https://toolset.com/documentation/programmer-reference/adding-custom-code/how-to-create-a-custom-shortcode/

Thanks.

The topic ‘[Closed] Create a custom template via single_ php’ is closed to new replies.