Skip Navigation

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

This support ticket is created vor 5 Jahre, 3 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 Antworten, has 2 Stimmen.

Last updated by martinP-13 vor 5 Jahre, 3 Monate.

Assisted by: Waqar.

Author
Artikel
#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

Waqar
Supporter

Languages: Englisch (English )

Timezone: Asia/Karachi (GMT+05:00)

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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.