RSS Feed/News Getting Custom User Field Text

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,419
Points
823

Reputation:

I created a custom user field, and now I'm trying to use that text value, for a template. How can I get that text value?

In my template I did this so I could use the custom user banner css without copying it to multiple places:
PHP:

Code:
<xf:if is="$user.Profile.custom_fields.pronouns">
    <div class="staff-pronouns">
        <xf:if is="$user.Profile.custom_fields.pronouns == 'he_him'">
            <span class="userBanner userBanner--syl_pro_he_him">{{ $user.Profile.custom_fields.pronouns...

Read more

Continue reading...
 
Status
Not open for further replies.
Top