Skip Navigation

[Resolved] Split: Split: need help , very complicated – Using a different template than theme

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

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

Assisted by: Waqar.

Author
Posts
#1188746

sorry i hadnt set judges to events.....
how can i make its hidden link uses a different template from my theme?(along with all dog posts)

#1188761

Hi Martin,

Thanks for asking! I'd be happy to help.

You can assign a "Content Template" to your single custom post, which will show uniform content to all posts belonging to that post type. This will also save you from repeatedly adding the same content in the content of each post or from adding PHP template files in the theme's directory.

I'll recommend these two guides on the topic, to learn more about the content templates:

https://toolset.com/documentation/getting-started-with-toolset/create-templates-to-display-custom-posts/
https://toolset.com/documentation/user-guides/setting-view-templates-for-single-pages/

Note: If for some reason, you'll prefer to work with PHP template files in the theme's directory (instead of the content templates), you can keep on adding "single-{custom-cpt-slug}.php" file for each custom post type's template.
( e.g. for the "Dogs" CPT with slug "dogs", you'll name the file as "single-dogs.php")

You can learn more about the WordPress' Template Hierarchy from this guide:
https://developer.wordpress.org/themes/basics/template-hierarchy/

regards,
Waqar

#1190012

My issue is resolved now. Thank you!