Skip Navigation

[Résolu] Conditional Field Groups for CPT based on Category

This support ticket is created Il y a 4 années et 12 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 3 réponses, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 4 années et 11 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1401217

Tell us what you are trying to do?

I have a CPT which are able to be assigned to regular WordPress Categories. For the field group assigned to this CPT, am I able to make a data dependent condition based on the category?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1401355
Taxonomies.JPG

Hello,

The Data-dependant condition works for custom fields, for taxonomy(including category), you can try to setup the condition in anther tab "Taxonomies".

For example, edit your custom field group, in section "Settings for *** group", click button "Edit", click "Taxonomies" tab, here you can setup condition on "Taxonomies" category, see screenshot Taxonomies.JPG

#1406329

Hmmm, yea I saw that and tried to, but the field group still didn't show up.

#1406349

I assume your are using WordPress block editor to edit your post, if it is, you need to choose the specific term, save the post, and fresh your browser, and test again.