Saltar navegación

[Resuelto] Fields not available in template unless I make the template the default

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 3 años, 6 meses. 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 -

Zona horaria del colaborador: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Darryl hace 3 años, 6 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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!