Passer la navigation

[Résolu] Content Template is not working on website

This support ticket is created Il y a 3 years, 5 months. 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
- 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

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

Dernière mise à jour par Minesh Il y a 3 years, 5 months.

Assisté par: Minesh.

Auteur
Publications
#2515349

Hello Support,

I am trying to create a content template on website for my team profile page. please see screenshot here- lien caché but it's not showing on frontend -lien caché

Link to a page where the issue can be seen: lien caché

Please check the issue and let me know why its not showing on frontend.

Thanks
Sid

#2515951

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

This is really strange. I even tried to delete the content template you created for team post type and created the new one but that does not help as well.

It seems either any third party plugin or theme is overriding the content template. To ensure there is no conflict between the third-party plugins you are using or theme:

*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

#2515967

Hello Minesh,

I had disable all the plugins and current theme and tried to test with the Twenty Twenty Three theme-lien caché but issue was not resolved. please check screenshot -lien caché

Although, I have tried the Twenty Twenty theme and able to see the frontend- lien caché, please check screenshot here- lien caché

PS- We will not change the theme in any case, you have to tell me the exact issue and please fix the issue for me.

Thanks
Sid

#2516189

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

It seems the theme support for content template created using Toolset is not compatible:
=> https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/

Content Templates modify the content when called from the_content function. Some themes don't use this function, but define their own.  As its not compatible then you will have to add a single post type php template to your theme and use the the_content() function to display the content belongs to content template.

Here is doc that shows how you can build single-{post-type}.php template:
- https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/