I try go get entries (of channel B) related to an entry (of channel A) within a list of entries (of channel A). All entries of channel B have a relationship field and at least one relation to an entry in channel A. But I get no results from channel B.
{% set entries = craft.entries.section('candidates').order('postDate asc') %}
{% for entry in entries %}
{% set feedbacks = craft.entries.section('candidates_feedbacks').relatedTo(entry.id) %}
{{ entry.title }}
{% for feedback in feedbacks %}
{{ feedback.title }}
{% endfor %}
{% endfor %}
What am I doing wrong?
Thank you very much for your feedback.
{{ entries|length }}and{{ feedbacks|length }}just to make sure you're getting the results back you're expecting to get back. – Brad Bell Mar 26 '15 at 15:58