I have:
Parent1 PostType
Parent2 PostType
Child PostType.
I want to filter view for Child PostType by both Parent post types.
Like:
show child which is belong only to both parent.
Which could be solved hierarchically - view filtered by Parent1 included view2 filtered by Parent2.
But! I also need to show Childs which is not belonged both to parent1 and parent2
Like:
[if post belonged to exact parent1id and exact parent2id] show something [/...]
[if post doesn't to exact parent1id and exact parent2id] show something different [/...]
For me best solution is filter one view by both parent ID but I don't see how to do it.
When adding the filter for the post relationship, you should be able to choose the filter type. If you were to select Multiple then it should allow you to pick more than one parent on the frontend.
Hi!
Actually this is not the issue.
So, your solution shows how to select several parents from the same type as filter for front end filtering of view.
Like show Post with ParentType1ID1 and ParentType1ID2
My issue:
- sort by parents id of parents of different post types. Like show posts with ParentType1ID1 and ParentType2ID2
- do it at backend by transfer parents ids by view parameter.
Both things not solved by your offered solution.
So, then I add one relationship as a filter, there is no option to add another.