Hi Martin,
Thank you for starting new tickets for different topics. This makes it efficient for everyone involved.
To simplify which information you can access directly in a content template or view and which parts will need additional nested views, you first can list the available information on the top, like I have included in the view "view to show dog appearances in single event page" ( hidden link ).
Screenshot Backend:
hidden link
Screenshot Frontend:
hidden link
( source: hidden link )
As for your nested view "view to show person in results of an event on single event page" ( hidden link ), the "Query Filter" section was set to use relationship filter, which wasn't correct.
What we need from that view is to get all the "Person Appearances" posts, where the "Person Appearance Role" custom field is equal to our desired role and the "Person Appearance Dog" field is equal to the ID of the current dog post.
Screenshot: hidden link
After updating the query filter with these two conditional, you'll only get correct posts results and will no longer need the "wpv-conditional" shortcode in the view's content template.
As a result, you'll be able to show all Owners participations like this:
[wpv-view name="view-to-show-person-in-results-of-an-event-on-single-event-page" wpvrelatedto="[wpv-post-id item='@dog-dog-appearance.parent']" role="Owner"]
Please note how we're passing our required dog's and role's information in the view's shortcode.
The good thing about this view is that it can be reused for getting persons with other roles too, only by changing the shortcode attribute value for "role".
Examples:
[wpv-view name="view-to-show-person-in-results-of-an-event-on-single-event-page" wpvrelatedto="[wpv-post-id item='@dog-dog-appearance.parent']" role="Judge"]
[wpv-view name="view-to-show-person-in-results-of-an-event-on-single-event-page" wpvrelatedto="[wpv-post-id item='@dog-dog-appearance.parent']" role="Handler"]
[wpv-view name="view-to-show-person-in-results-of-an-event-on-single-event-page" wpvrelatedto="[wpv-post-id item='@dog-dog-appearance.parent']" role="Breeder"]
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar