Skip Navigation

[Resolved] Conditional Field Groups for CPT based on Category

This support ticket is created 4 years, 12 months ago. 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#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.