I am trying to:
Use to relationship filters in one custom search.
I have CPTs States and Regions as well as another CPT (completed courses) which both need to be filtered in a custom search.
But only one relationship filter works at a time.
Link to a page where the issue can be seen:
demo.sps-specialista.cz/specialiste
I read multiple tickets and comments, in 2018 this feature was on the to-do list.
I also saw the information on a ticket from 2020 that this feature is not ready yet, but there's is some way to make this work though.
I expected to see:
Instead, I got:
Hello, in most cases you only have the ability to add one post relationship filter in a custom search View. The exception to this rule is chained one-to-many relationships. For example, if you have 3 post types A, B, and C, where A is parent of B, and B is parent of C, then you can add one post relationship filter with multiple generations of ancestors. However, if the two post relationships are not chained ancestors then there is not currently a way to support those multiple post relationship filters. If you'd like to see this feature added to the software, I encourage you to submit your request here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
This will let our management team know you want to add this feature in a future version of the software.
Hello Christian,
thanks for the specification.
So, if this is not possible, could you suggest a different solution as I have built the website and didn't know I cannot use more relationship filters at once?
I probably have to delete CPTs States and Regions because of this, but when I make them taxonomies I would have another problem. Because, as far as I know, I can't use two dropdowns with parent/child taxonomies.
I need to keep my relationship between Specialists and Courses because I already made a "system" that would carry our certificates and its custom fields in intermediary posts and so I am able to filter specialists by courses they have completed.
Basically: How should I make the states/regions (or cities whatever) so I could use it in a filter in a custom search and avoid relationships?
Best Regards
David
Would it work if you make States a taxonomy and Regions a different taxonomy? Then you would be able to use two separate filters for States and Regions. If you use the feature "Only show available options for each input" in your custom search View, then the filters will update each time a visitor makes a filter selection. https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/