Ability to place custom fields in post header?

Hello all! I’m new to Discourse and I found this thread that looks like EXACTLY what I’m trying to do. I have a custom field that I’d like to have displayed right after the Full Name of a user on a post.

I’m not completely inexperienced with making plugins for other web apps that I’ve used in the past, so I think with enough patience and trial and error I could figure out how to make a Theme Component or something similar work. I’m in the process of going through the Theme Development tutorial now.

I THINK I figured out the name of the field to add to the “public user custom fields” setting (I think the id is 2, so I set it to user_field_2).

I logged into my Discourse site, and created a new Theme Component. I enabled it for all the themes I have installed. I went to JS and copied the code from above (changing user_field_4 to user_field_2). It didn’t seem to do anything, so I’m sure I did something wrong. Is there somewhere else I needed to paste this? Or am I way off base?

I know this post is somewhat old, so the code may be outdated. Any possibility of anyone being able to help me out? I’ll do my best to answer any questions or provide any needed details. THANK YOU!