XF 2.2 How to add custom user field info below avatar?


Active member
I've been searching for a while, but can't find an answer to this.

I would like to display the value of a custom user field under the avatar.

I know the template is message_macros and I want to place it right after this code:
<xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
but I don't know what the code needs to be.

See below circled in red for an example of where I want this info placed.


Thank you. I already have some custom user fields displayed that way, but I'm looking to add just the value of one specific custom user field on it's own, without the name of the user field in front.

See below in red.

Top Bottom