Tell us what you are trying to do?
We have 4 Custom post types. Person, Role, Location and Organisation.
These are linked by Many to Many relationships. (Most would only need one to many but the back end editing experience is better for our client using many to many)
We can display related post fields using nested views.
We wish to filter People by a custom field in Role.
I know this is not possible out of the box but is it possible with custom code?
Is there any documentation that you are following?
Is there a similar example that we can see?
No the site is under local development
What is the link to your site?
Local siye
Hello,
Yes, there isn't such kind of built-in feature within Toolset plugins, it needs custom codes, you can follow our document to setup the custom codes:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
If you need assistance for it, here is a sandbox website:
hidden link
Please reproduce the same settings(custom posts, fields and post type relationships) in above sandbox website, also point out the:
- View URL (filter People by a custom field in Role)
- Page URL (where I can test the result in frontend.)
I need to test and debug the custom codes in a live website.
Thanks.
We have got the filters wirking as seen here.
hidden link
Diocese is actually with a relationship to organisation.
How are we able to select from the 3 filters without having to click submit. Ajax doesn't seem to work
How do you setup the relationship filters?
Please provide your website credentials in below private message box, I need to test and debug it in a live website. thanks