# הצגת שדה משתמש מותאם אישית בפוסט

**URL:** https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321
**Category:** Feature
**Created:** [26 במאי,‏ 2023,‏ 2:18pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321 "2023-05-26T14:18:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [26 במאי,‏ 2023,‏ 2:18pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/1 "2023-05-26T14:18:53Z")

</div>

We have a custom user field for member ID that we would like to have show next to the member’s username on a post on our Discourse-hosted site. There isn’t a setting for this, is there an existing theme component to do this?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [26 במאי,‏ 2023,‏ 2:21pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/2 "2023-05-26T14:21:05Z")

</div>

i have this for user cards and profile. can probably use a plugin-in api to get it into posts.

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [26 במאי,‏ 2023,‏ 2:22pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/3 "2023-05-26T14:22:13Z")

</div>

I haven’t figured out exactly what user cards are yet. 🙂 How are they different from the user’s public profile?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [26 במאי,‏ 2023,‏ 2:23pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/4 "2023-05-26T14:23:14Z")

</div>

click/ tap one of our avatars in this topic to get the user card. click/ tap the avatar on the user card to get our profiles 🙂

let me know if you want help configuring the custom user field

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [26 במאי,‏ 2023,‏ 2:34pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/5 "2023-05-26T14:34:46Z")

</div>

for anyone who needs to do this, here’s how i do it on my site:

`admin-customize-user fields`

 ![IMG_3386](https://global.discourse-cdn.com/meta/original/4X/1/d/6/1d653068ae6fe5e83ad0fb7838741682e5690320.jpeg)

 ![IMG_3387](https://global.discourse-cdn.com/meta/original/4X/0/2/e/02e4fe2c99f8f46701ecf057f001dcf0cc192dfc.jpeg)

user preferences, profile tab:

 ![IMG_3389](https://global.discourse-cdn.com/meta/original/4X/3/8/8/3882b083698ba70130add669962d12b4fdc63f48.jpeg)

how it appears on user card and profile:

 ![IMG_3390](https://global.discourse-cdn.com/meta/original/4X/d/7/2/d72aa11899f8459e9fdfdd67b5d9d4970ac4539a.jpeg)

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [26 במאי,‏ 2023,‏ 2:41pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/6 "2023-05-26T14:41:42Z")

</div>

I figured out the custom user fields, populating them from our member database is a separate matter, the Discourse transition team was asked to include this in our data migration.

Eventually we hope to use a single-sign-on from our Drupal-based website to get to Discourse, but the module to do that doesn’t appear to have anyone actively supporting it and I don’t know if it even works.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [26 במאי,‏ 2023,‏ 2:55pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/7 "2023-05-26T14:55:09Z")

</div>

> [@MikeNolan](#):
>
> We have a custom user field for member ID that we would like to have show next to the member’s username on a post on our Discourse-hosted site.

here’s how to do this part:

> [@Ability to place custom fields in post header?](https://meta.discourse.org/t/ability-to-place-custom-fields-in-post-header/106928/1):
>
> I have a use case where I would like to add the content from a custom user field next to my username in the post header: not sure the best way to go about this? very new to discourse and all its wonders

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [26 במאי,‏ 2023,‏ 3:10pm UTC](https://meta.discourse.org/t/displaying-a-custom-user-field-on-a-post/266321/8 "2023-05-26T15:10:25Z")

</div>

Thanks, this should give me a good starting point.

Will this being a Discourse-hosted site impact our ability to write a custom theme component, since that seems to be the missing link? (Having the ability to display a custom data field on a post seems like something that should be a setting.)
