I am trying to:
Display the related parent 'Style of Beer' of the child 'Beers' in a View for each single 'Beer' post.
My website is set up as $parent = Breweries
$parent = Style of Beer
$child (of both $parents) = Beers
I set it up like this because both a Brewery and a style can have many beers. Later I can then set up Views for beers by Brewery and by Style. I'm not sure if this was the correct or most efficient way to do this, though.
I ended up getting confused about what I needed to do and after the excellent help Christian gave me on a separate issue, it seemed a good idea to ask for assistance again.
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
// I want to put the title of parent style here that relates to the beer e.g. 'All In Jim' is an American Pale Ale.
[types field='abv'][/types]
[types field='availability'][/types]
[types field='notes-commercial-description'][/types]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Then I would add that View to the single Beer page.
The parent Style is stored as the Title of the parent or as a taxonomy.
In order to display the correct information I need to know exactly because all you need to do is to use the id = '$style' attribute in any shortcode and it will always display the parent information.