Skip Navigation

[Resolved] Exclusive taxonomies

This support ticket is created 6 years, 9 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 – 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 6 replies, has 2 voices.

Last updated by JanP6468 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#620091

Hi,

I am trying to adjust my custom taxonomies ("Bike statuses") in a way they are mutually exclusive. Example: When someone selects Bike status "Stolen / Missing", they cannot choose a Bike status "In Possession".

I only have this one taxonomy set, so I do not mind about relations between different taxonomy sets.

I did not find any advice on this topic in the documentation, and only this support topic (where Beda says it should be possible, but no specific guide on how to reach that):
https://toolset.com/forums/topic/exclusive-taxonomy-terms-with-types/

Thank you for any direction,

Jan

#620236

Shane
Supporter

Languages: English (English )

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

Hi Jan,

Thank you for contacting our support forum.

This is actually possible however as beda sad it would require some custom code to achieve, which would be out of the scope of our support forum.

What you can do is to use custom fields instead as you can conditionally display the custom fields based on some criteria.

https://toolset.com/documentation/user-guides/types-custom-fields-conditional-display/

Please let me know if this helps.
Thanks,
Shane

#620600

Hi Shane,

Unfortunately, this does not really help here because we are already using custom fields based on the taxonomy, and it is important to have the taxonomies set up well on the back end - otherwise, the rest of the website (built on tools by Toolset) will not work properly. So we really need the exclusive taxonomy functionality.

Is there perhaps any chance to add this as a new functionality in the taxonomy settings within the plugin? There is technically a setup needed when setting up new taxonomy, and there are already "advanced settings" possibilities in place, so there is no need to create any large UI other than a checkbox for exclusive taxonomies..

Thank you,

Jan

#620689

Shane
Supporter

Languages: English (English )

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

Hi Jan,

I can suggest this as a feature request to our team but this won't be something that would be pushed and implemented immediately.

It has to go through the various stages in order for a feature request to make it to development.

Would you still like me to go ahead with the request ? Any other solution would require some custom coding to achieve.

Thanks,
Shane

#620700

Any kind of help is extremely appreciated 🙂

#620878

Shane
Supporter

Languages: English (English )

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

Hi Jan,

I did a little searching to see if there was a way to force the selection of only one taxonomy term and found this here.
hidden link

This page also has a link to the code that was used.

hidden link

This is the best I can do as i'm not able to do a custom solution for you since it would be out of the scope of what we can provide for support.

Please let me know if this was able to help you.
Thanks
Shane

#622165

Hi Shane,

I am afraid this is already well beyond my skills, guess we will have to keep the taxonomies open and rely on users' judgement/fix things manually..

If you could please bring up the added functionality suggestion to the right person, maybe we will get this one resolved at least sometime in the future.

Thanks for the effort,

Jan