Skip Navigation

[Resolved] theme template

This thread is resolved. Here is a description of the problem and solution.

Problem:

The user wanted to know how to create a custom php template for their CPT.

Solution:
To do this I would recommend following the instructions in the link below.
https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by martinP-13 5 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1188194

Tell us what you are trying to do?
this view here hidden link i want to use a different theme template (for example it using my themes blog.php i want it to use my single.php

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1188254

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Thank you for contacting our support forum.

Unfortunately no this wouldn't work as you blog.php template is meant to list out all the posts in your blog, while the single.php is meant for displaying a single posts.

These 2 templates serve completely different purposes so it wouldn't work.

Thanks,
Shane

#1188270

the file names where an example ,
this here hidden link for a judges single page
this here hidden link for a dogs single page

i want to use my theme template of choice ie. maybe this one or slighty different , hidden link

i just either need to know how to asssine a template of choice with toolset or maybe a function for my theme file that will load the template of choice when on hidden link or hidden link

#1188322

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Then yes it is possible. What you can do is to just create a copy and then rename the copy as single-{custom-cpt-slug}.php

For more information on this have a look at the link below.
https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/

Please let me know if this helps.
Thanks,
Shane

#1190011

My issue is resolved now. Thank you!