Problem:
How to create different PHP template for different custom post type.
Solution:
To create different PHP template for your different custom post type you need to understand the template hierarchy of WordPress.
For example:
single-{custom-post-type-slug}.php
Where:
- Replace "{custom-post-type-slug}" with your original custom post type slug.
You can find proposed solution with the following reply:
https://toolset.com/forums/topic/replacing-theme-layout/#post-581369
Relevant Documentation:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
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.
Our next available supporter will start replying to tickets in about 7.53 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 1 month ago.
Assisted by: Minesh.