0

I have a Relationships field called "relate_entries". This field is set to relate to just one channel. I no problem calling the title when it is not looping by setting things up like this:

{exp:channel:entries 
    channel="kalender" 
    sort="asc" 
    show_future_entries="yes" 
    show_expired="no" 
    disable="categories|category_fields|member_data|trackbacks"}

{relate_entries:title}

{/exp:channel:entries}

But if I try to output multiple related entries it doesnt work.

{exp:channel:entries 
    channel="kalender" 
    sort="asc" 
    show_future_entries="yes" 
    show_expired="no"
    disable="categories|category_fields|member_data|trackbacks"}

    {relate_entries}
        {relate_entries:title}
    {/relate_entries} 

{/exp:channel:entries}

Thanks for any help.

EE 6.0.2

10
  • What does "it doesn't work" mean - could you provide examples of what happens? – JCOGS Design Feb 12 at 17:32
  • Nothing happens. Nothing is outputted. I though my description was pretty well explained. Did you read all of my post? – Kippi Feb 13 at 18:03
  • What do you see if you replace :title with :entry_ids in the two examples? – JCOGS Design Feb 15 at 14:07
  • If I use :entry_ids alone it outputs the entries ids but if I use it between the relationships tags it doesn´t output anything. Like this: {relate_entries}{relate_entries:entry_ids} {/relate_entries} – Kippi Feb 15 at 15:49
  • 1
    Are you using custom statuses in your channel? If so you need you might need to account for that, showing future entries as well: {relate_entries status="not closed" show_future_entries="yes"}{relate_entries:title}{/relate_entries} – Bluedreamer Feb 21 at 0:51

Your Answer

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

Browse other questions tagged or ask your own question.