EDIT:
O man, please ignore this thread. I thought I was getting the hang of EE, but have made a sub-entry-level mistake. Turns out the field label and field name were in the wrong order in the field settings. Arrrgh! Anyhow, all fixed now.
==========original post
I’ve created relationships before, but just can’t get it working at the moment, using 2.1.3. I can’t see any mistakes, but the relationship field is simply outputting as the field tag rather than the content from that field.
I created two channels: one (event-notice) that includes a relationship field (event-notice-link), and another channel (event-notice-rels) that has small posts for related info, with a single custom field (event-notice-rels-content).
The template code reads:
{exp:channel:entries channel="event-notice" disable="member_data|pagination"}
<div class="entries">
<h3>{title}</h3>
<p> {event-notice-content}<br />
{related_entries id="event-notice-link"}<br />
{event-notice-rels-content}<br />
{/related_entries}<br />
{/exp:channel:entries}The {title} and {event-notice-content} fields are ourputting fine, but the the relationship line outputs as—
{event-notice-rels-content}
(that is, the tag appears instead of the content).
Can anyone suggest what I’m doing wrong? I’ve checked for typos many times, but there are none that I can find. Content has been posted in both channels.
Thanks for any suggestions. 😖