I am trying to use count and total_results to detect the last item but total_results is not working in a relationship field. I can get the count and verify there are multiple entries but not the total.

{exp:channel:entries url_title="the-title"}


    {!-- working --}

    {!-- not working --}




1 2 3 4 5 6 7

1 Answer 1


Hmm, that is wierd, according to this thread (which I'm sure you've seen) that should be working...

What do you get? Blank or the wrong number??

Also can you confirm the version of EE you are using please?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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