Passer la navigation

[Résolu] Add a dropdown filter for 2 relationships with custom field as a critirio

This support ticket is created Il y a 1 year, 2 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par Minesh Il y a 1 year, 2 months.

Assisté par: Minesh.

Auteur
Publications
#2804091

Tell us what you are trying to do?
I have 3 custom fields, A, B and C. 2 relationships many to many, C to A and C to B. Each relationship has a custom field , K. I want to add a dropdown filter a view that shows posts with custom fields A and B, so user can filter the results. I want that filter to only show options that include Cs that are in a relation with either A or B AND they have K to be true.

Is there any documentation that you are following?
no

Is there a similar example that we can see?
no

What is the link to your site?

#2804304

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the Doc that shows information about how you can add relationship filter to your custom search view:
- https://toolset.com/course-lesson/creating-a-custom-search/#how-to-search-by-post-relationships

However - reading your requirement there is no such option available to filter the custom search result as per your requirement.

If you can share problem URL and admin access details and tell me with what options what is your expected results and setup a test site I will try to reivew and check if I've any workaround to share.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.