Sauter la navigation

[Résolu] Content Templates not working for some pages

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

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: Africa/Casablanca (GMT+01:00)

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

Dernière mise à jour par duongN-3 Il y a 3 années et 9 mois.

Assisté par: Jamal.

Auteur
Publications
#2030775

Tell us what you are trying to do?
Pages like this aren't showing the content template.
Defective page: lien caché
Expected template: lien caché
Is there any documentation that you are following?
No
Is there a similar example that we can see?
Page should show like this: lien caché

What is the link to your site?
lien caché

#2030843

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi there

There were some changes to the assignment of content templates in the lastest plugin release.

It would be helpful if we could take a quick look at your site to see how this is set up, and if it is not obvious what the problem is, possibly take a copy of your site for testing.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#2031863

For some reason, the content template does not get used by that post. I first unassigned the content template, and the metabox disappeared. So, I deactivated Toolset Layouts, as you don't have any active layout used, and assigned the content template back to the post, but it did not help.

I'll need to debug this issue locally. Can I take a copy of your website for my debugging?

#2032091

Hi Jamal,

Please go ahead and do what you need .
Thanks.

#2032431

This issue does not happen in a minimal setup (Only Toolset plugins+Default theme). It turns out to be caused by the theme's code, which is using a function that does not exist (wdm_acf()). Check this screenshot lien caché

If I removed or disable the shortcode "wpdm_package" in the view "List of Subtitles", the issue disappears. Check this screenshot lien caché
This shortcode is used for the "Media" tab.

I believe that the theme expects to have the "Advanced Custom Fields" addon for Download Manager, which includes this function lien caché

I hope this helps. Let me know if you have any questions.

#2034427

My issue is resolved now. Thank you!