Thank you very much for your brain-work and your detailed step by step instructions.
In short:
I think I got the bits and pieces together, however I don't get the 2 "Relationship Query Filter" right.
Maybe you can have a quick look on my setup, and give me a hand on the Query Filter.
Here the outcome so far:
WP Backend "Exhibition Singapore" with collections attached an with 3 Prize Awards
hidden link
Front End without any Filter
hidden link
My Problem is at View Nr2 which I named "View intermediate Entries v01"
It will need a relationship Query Filter to return only entries that belong to the current Exhibition,
> and a second Query Filter to only return entries that have a value for the Prize custom field (only show prize winners).
relationship Query Filter 1
hidden link
> I don't fully understand how to get the Filter working.
Here some details about the expected result:
Setup:
Singapore:
attached a lot of collections + 3 Prize Award Attribution
National Award: Basses Rickenbacker 1965-1975 (by Paul)
International Award: Cymbals Paiste 1960-1976 (by Charlie)
Prix d'Honneur: Lyrics 1965-1970 (by John)
Toronto:
attached 3 Guitar and 1 Cymbal Collection BUT NO Prize Award Attribution
New York:
NOTHING ATTACHED
> Outcome should be that only Singapore shows 3 Lines of prizes.
Toronto empty as no Prizes attributed
New York empty as no collections attached at all
My Toolset Details:
CPT collections
name-collection
icon-collection (image)
CPT exhibitions
name-exhibition
country-exhibition
date-from-exhibiton
date-to-exhibition
CPT exhibitors
name-exhibitor
RELATIONSHIPS:
a)
exhibitor-collection
exhibitors [0 .. 1] << collections [*]
b)
entry
exhibitions [*] << entries >> collections [*]
Fields attached to this relationship:
prize-attribution (Select field)
VIEWS
[A]
View exhibitions v01
> first outer view - to query Exhibitions
<h2>[wpv-post-link]</h2>
[wpv-view name="view-intermediate-entries-v01" orderby="prize-attribution" order="asc"]
[B]
View intermediate Entries v01
> nested view to query the intermediate post type Entries (from many-to-many relationship Exhibitions & Collections)
[wpv-post-link]<br>
<div class="xred">[types field='prize-attribution'][/types]</div>
<div class="xblue">[types field='name-collection' item='@entry.child'][/types]</div>
[wpv-view name="view-owner-of-collection-aka-exhibitor-v01" orderby="prize-attribution" order="asc"]
[C]
View Owner of Collection aka Exhibitor v01
> nested view to query collection POSTS with a relationship Query Filter to return only the collection post connected to the current ENTRY to output "Parent Exhibitor Fields"
[wpv-post-link]
[types field='name-exhibitor' item='@exhibitor-collection.parent'][/types]
Many thanks again for your support
Best regards