Passer la navigation

[Résolu] Create Content Template

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

Problem:

How to setup content template for single post of custom post type.

Solution:

You can follow our document to setup the content template:

Relevant Documentation:

https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/

This support ticket is created Il y a 4 years, 6 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
- 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 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

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

Dernière mise à jour par Charles Il y a 4 years, 6 months.

Assisté par: Luo Yang.

Auteur
Publications
#2216187
11-08-2021c.JPG
11-08-2021b.JPG
11-08-2021a.JPG

Tell us what you are trying to do?
I created a template for Pros, yet I do not see it on The Toolset dashboard.

Is there any documentation that you are following?
No
Is there a similar example that we can see?
See attached images.
What is the link to your site?
lien caché

#2216469

Hello,

From your screenshot:
https://toolset.com/wp-content/uploads/2021/11/2216187-11_08_2021b.jpg
Don't worry about that, it is telling you this because you display those posts with the Theme's native template, which cannot display Custom Fields (unless you add that manually with PHP)

Instead of using PHP though, you can simply create a Content Template, for example, and apply that to those Post Type "Pros".
In that Template, you can then insert the Custom Fields you have created for those Post Types, so they will display.

https://toolset.com/forums/topic/the-form-is-not-filling-out-information-in-a-post-2/
It seems Toolset content template can work fine in your website with your current theme without changing theme files.

#2217873

My issue is resolved now. Thank you!