Is there a way to get the total number of items chosen in a multiple relationships field?

  • 3
    Grrr EE Docs are missing, and inconsistent! – Bradley Flood Aug 11 '14 at 5:55

Did you try this tag:



{exp:channel:entries channel="xyz"}
  • Yup. That is what I need. – developarvin Sep 9 '13 at 6:15

In addition to Bhashkar Yadav's answer, this worked successfully for me:

{exp:channel:entries channel='channel_xyz' status='not closed'}
    {if relationship_field:total_results > 0}
        ...do something!

...that is, having it outside of the relationship field loop.

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.