Skip Navigation

[Resolved] Filter categories for a particular value of an arbitrary field

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 7 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#522997
Screenshot_1.jpg

I apologize for the bad English (I write with an interpreter).

At the moment I'm working with the training site on your system. I can not understand if it's possible to do such a thing:

There is a form of adding material to the site. There is an arbitrary field (an example of a field value is 1). It is necessary to make sure that when the value of this field is selected, the categories available for selection are filtered.

I attach a screenshot, which I hope will more clearly explain my idea.

#523202

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for contacting our support forum.

This actually is a bit possible because we can use a hook to manually set the terms based on what is selected.

This would mean you will need to write a custom hook and to check what was selected and then manually set the taxonomy terms by using the function below.
https://codex.wordpress.org/Function_Reference/wp_set_post_terms

https://toolset.com/documentation/programmer-reference/cred-api/#csd
I hope this was able to put you on the right track.

Thanks,
Shane

The forum ‘Types Community Support’ is closed to new topics and replies.