1

In my entry template I have the following...

{% set entry95 = entry.story1995 %}
{{ entry95.title }}

And this displays nothing. Debug mode is on and no errors are showing. The handle for the field is set properly. Other fields for the main entry are showing up, but nothing from this custom Entries field.

I can't figure out what I could be doing wrong here.

1

You need to put the entry in a for loop. Because even if there's only one entry linked to, it could still potentially be multiple entries!

{% for entry95 in entry.story1995 %}
    {{ entry95.title }}
{% endfor %}
| improve this answer | |
  • 1
    That, or {% set entry95 = entry.story1995.first() %} – Lindsey D Sep 3 '15 at 21:23
  • Ha! Sorry for the noise. I banged my head over this for hours. Ugh. As soon as I post the question I figure it out. Ain't that typical. – Dave Joyce Sep 3 '15 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.