0

I have the following code:

{exp:member:custom_profile_data}
        <div class="profile">
            {member_group}
            {if member_group == "Super Admins"}You are a Super Admin{/if}
        </div>
{/exp:member:custom_profile_data}

Member group is being displayed correctly, but it doesn't work in conditional. I would appreciate if anyone can explain what I'm doing wrong or how else to add a member group specific content.

1 Answer 1

0

OK I've figured it out, so {member_group} displays the name of the member group, but placed in conditional it requires an ID of the member group. Works now!

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.