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)
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
My issue is resolved now. Thank you!