I'm trying to display all the data of my members, including the last time they logged in (last visit), but I can't seem to get the right data. Either I receive the data of the users that's currently logged in, or nothing at all. I'm currently trying this:

Last visit

    {exp:member:custom_profile_data member_id="{entry_date}"}{last_visit format="%Y %m %d"}{/exp:member:custom_profile_data}

I thought this should work since this is the way it's being described here: https://ellislab.com/expressionengine/user-guide/add-ons/member/#member-profile-templates

Does anyone has the idea what's the right way to do it?

1 Answer 1


The right way to do it turned out to be:

        {exp:member:custom_profile_data member_id="{author_id}"}
           {last_visit format="%d %m %Y"}

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.