Hi!
I am setting up a custom search and want to have two different post relationships, as in https://toolset.com/forums/topic/search-filter-with-two-post-relation-ships/
The catch is that each relationship is second degree. For example, one of the relationships is that I want to filter on a parent ("season") of a child ("show") of one post type ("performer"). I can get this relationship by itself using [wpv-control-post-relationship ancestors="season@season-show.parent>show@performer-show.child"] in a custom search view for performers. The other relationship is a different one that is also two relationships away from performer. But I understand that I can't have two different post relationships in the same view (wish I could!), so I need to do some coding.
So my question is: is there a way to alter the code in the forum thread above to filter by these second-degree relationships?
Thanks!
Hi Casey,
Thank you for waiting.
I've performed some tests on my website with two separate hierarchal post-relationships and I'm afraid the couple of workarounds that I've tested, weren't successful.
Since this kind of filtering is not currently supported out-of-the-box, you're welcome to submit a feature request for this at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
I'm sorry I couldn't offer more specific assistance in this matter. For more personalized assistance around customization, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/
regards,
Waqar
Thanks, Waqar. I will submit a feature request. Having post relationships is the strength of Toolset, so it seems that being able to filter custom searches on any of these relationships (even when they are not simple parent/child ones) should be part of Toolset. I can generate great Views based on these relationships but it's definitely a limitation that I can't do custom search filters on them.