I wuold like to filter a view by post relationship setting multiple ids in the view shortcode but it works only with a single id, not multiples even if they are separated by a comma:
It's not possible to filter by multiple related posts.
So, on my test site I have events connected to artists, and I have a View to display the artists appearing at the event that I specify with an attribute 'wpvrelatedto'.
Has there bern any progress in this? I am trying to do the same: filtering by multiple post relationships and I cannot see how to do it. Thx for an update on this issue.
I am also interested to know if this functionality has been added as yet. I am building a view to display child posts with filters for two different parent post types... I have managed to add a filter for 1 parent type but the second returns the error:
"The ancestors argument does not end with a valid post that is related for the returned post types on this View."
You can see an example of using the API to filter by two post parents at this link, but it refers to passing the parent IDs as shortcode attributes: hidden link
There is no feature to enable the same with front-end filters, I'm afraid @peter
Hey Nigel. This would be an awesome feature and would save us from having to add redundant attribute filters.
Is this something that's being actively developed?
Also, I'd like to suggest adding to the feature request simple operators.
As stated:
Content Selection: Models
"Select posts in a Series Models relationship AND in a Lines Models relationship that are a related to the current post in the loop."
Shows ONLY the Models that in both a Series and a Line.
But Also:
Content Selection Models
"Select posts in a Series Models relationship NOT in a Lines Models relationship that are a related to the current post in the loop."
Shows the Models that are in a Series ONLY, excluding the Models that are in both a Series and a Line.
That logic might need some work, but I think you get the idea.