Skip Navigation

[Resolved] Default pages for each CPT

This support ticket is created 5 years, 1 month 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)

This topic contains 2 replies, has 2 voices.

Last updated by nicolaS-3 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1377195

Hi,
I have created various CPTs and views to display them. When I click on their permalinks every single custom post is displayed by the default Post single page, showing just title, content and featured image. How do I specify a different default page for each CPT ? any document or tutorial ?
thanks

#1377357

Shane
Supporter

Languages: English (English )

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

Hi Nicola,

Thank you for contacting our support forum.

There is actually 2 ways of doing this.

One way is by creating a php template for each of your CPT that will define how that CPT is displayed. Here is the documentation on this method.
https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/

The second is by using our content templates to create a custom template for that CPT.
https://toolset.com/documentation/getting-started-with-toolset/create-templates-to-display-custom-posts/designing-a-template-without-any-page-builder/

Please let me know if this helps.
Thanks,
Shane

#1378643

Hi Shane, thanks for your indications, I was able to solve my issue with method 2. I just had to modify single.php to remove standard fields that would appear anyways above the custom template, but that's not an issue for this project where I never use standard page layout. Thanks you so much !
Kind regards
Nicola