Skip Navigation

[Resolved] Relation post filter field

This support ticket is created 2 years, 7 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
- 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2169673

Hello, I would have liked to know how to do a search filter on one of the fields (custom or taxonomy) of a relation publication.

Let me explain :

I have an "A" post type which is linked to a "B" post

The "A" post have field : "a-field-1", "a-field-2" and "a-field-3"
The "B" post have field "b-field-1", "b-field-2" and "b-field-3"
In a page, I display (view) a list of "A" publications with a search filter above.
I manage to use the fields of the "A" publication to filter, that's okay. May how can I have a post "B" field (example: b-field-2) to filter post "A"

In my view I manage to display the fields of the publication but linked I cannot put a filter on them. Thank you for your help

Patrick

#2169829

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The thing is that you can build the custom search (add a front-end filter using the custom field, taxonomy) for the post type you set your view to query.

Having said that, if you set your view to query post type "A", you can only add frontend filters using the field that belongs to post type "A" that is: The "A" post have field : "a-field-1", "a-field-2" and "a-field-3"

You can not add another post type "B" fields. This is a limitation and this is a known feature request but to raise your voice you can raise a new feature request:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.