Skip Navigation

[Résolu] If post in category

This support ticket is created Il y a 4 années et 5 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: Africa/Casablanca (GMT+01:00)

Marqué : 

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

Dernière mise à jour par Adrian Il y a 4 années et 5 mois.

Assisté par: Jamal.

Auteur
Publications
#1676985

Hi,

I have 1 post with two taxonomies:
-Manufacturers
- Disciplines

I would like to display a list of manufacturers who have at least one product within a given discipline. Is that possible using a standard toolset function, or would I have to custom code this?

Thank you,
Adrian

#1677815

Hello Adrian and thank you for contacting the Toolset support.

This cannot be done with Toolset without a bit of custom code. Because, Toolset views, are bound to posts or taxonomies. It is not possible to create a relationship between taxonomies.
You may create a custom function that queries posts by discipline and pull all the manufacturers from the posts. Then you can use its value inside the Toolset view to display manufacturers with a query filter on "Taxonomy term filter" as one of the values returned by the function.

I hope this answers your question. Let me know if you have any other questions.

#1681037

My issue is resolved now. Thank you!