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! Aug 11, 2014 at 5:55

2 Answers 2


Did you try this tag:



{exp:channel:entries channel="xyz"}
  • Yup. That is what I need. Sep 9, 2013 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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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