Skip Navigation

[Résolu] Fields not available in template unless I make the template the default

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Occasionally I need to use multiple templates for a post type but unless I specify that the template is the default for the single display, all the fields of that post type are not available to me.

Solution:

Please edit the content template, in option "View with:", find and select a specific post, and test again, see my screenshot view-with.jpg

Relevant Documentation:

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

Assisté par: Luo Yang.

Auteur
Publications
#2286303

Occasionally I need to use multiple templates for a post type but unless I specify that the template is the default for the single display, all the fields of that post type are not available to me.
For example, the featured image field, unless I assign the template to be the default, I cannot add the featured image to the template.

#2286569
view-with.JPG

Hello,

I assume you are using Blocks editor to setup the content template, please edit the content template, in option "View with:", find and select a specific post, and test again, see my screenshot view-with.jpg

#2290943

My issue is resolved now. Thank you!