Trying to list all the entries which belong to an entry. Currently I have the following field format:
- Product
- Has an 'retailer' entries field.
- Retailer
- Normal entry.
On the retailers _entry.html page I'm trying to display all the products which belong to said retailer. But the code I'm producing is running into trouble:
retailers/_entry.html
{% set relatedProducts = craft.entries.section('products').relatedTo(entry) %}
{% for entry in relatedProducts %}
<h3>Some great entries</h3>
{% endfor %}
This code seems to be showing the title but not actually looping over the length of the array?