Hello. My brain is aching and I need a wee bit of help...
I have two CPTs (DATE) and (ITEM) in a many-to-many Relationship with an intermediary CPT (ITEM-TO-DATE).
The intermediary CPT has a numerical custom field called QUANTITY:
For a DATE I wish to list all the ITEMs in the ITEM-TO-DATE relationship. Easy.
Then for an ITEM I wish to get the QUANTITY numerical value from ITEM-TO-DATE but only for the ITEM's parent DATE.
For example:
If I nest a View within a View for a DATE:
VIEW 1 - List ITEMs in the ITEM-TO-DATE relationship
VIEW 2 - List ITEMS-TO-DATE related to current post in loop
Display QUANTITY
It displays QUANTITYs for all ITEMS-TO-DATE related to the ITEM. I just want the one QUANTITY for the original DATE.
Thanks.
Okay... Think I might have solution...
VIEW1 - List ITEM-TO-DATEs in ITEM-TO-DATE relationship as related to post where view is shown
Get the QUANTITY and pass as an argument to the nested View...
VIEW2 - List ITEMs in an ITEM-TO-DATE relationships related to post where view is shown
Display the QUANTITY