Skip Navigation

[Résolu] Content templates suddenly stopped working on our CPT

This support ticket is created Il y a 4 années et 11 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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/Hong_Kong (GMT+08:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par guyA-2 Il y a 4 années et 11 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1402855

Hi there,

We have 3 custom post types set up: Case Studies, Clients and Marketing Packages.

The content on the single pages has stopped displaying but in Toolset we can see that the content is still there.
The content templates are set up and assigned to the single posts. Can you help us get this working again?

Thanks!

Guy

#1403547

Hello,

Thanks for the details, I can log into your website and see the problems.

The problem should be in your theme "Oshin Child", after switch to the parent theme "Oshin", I can see those single posts of post types Case Studies, Clients and Marketing Packages work just fine.

Is there anything changed in your website recently? especially the "Oshin Child" theme.
Are you using some custom codes to change the_content filter result?

Here is a document about "Theme Support for Content Templates"
https://toolset.com/documentation/user-guides/theme-support-for-content-templates/

For your reference.

#1403567

My issue is resolved now. Thank you!
The issue was the single-[cpt].php templates.
They were all missing the WP loop.

Thanks again for your help!

Guy