# Creating dynamic titles using groups or badges?

**URL:** https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391
**Category:** Support
**Created:** [April 25, 2025, 4:58am UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391 "2025-04-25T04:58:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [April 25, 2025, 4:58am UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391/1 "2025-04-25T04:58:07Z")

</div>

I want to assign dynamic titles to users based on their number of posts and number of likes that they have (and maybe some other criteria).

Ideally I would want to display that title near the username on the posts. But even on user card is fine as I understand that minimalism looks more elegant.

This is how I am displaying it right now on XF, Forerunner is the title. Please suggest what is the best way to achieve this.

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/c/d/0cdfe1adcb1727835c7c527f38f34198ec6c236f.png)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 29, 2025, 9:41pm UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391/3 "2025-04-29T21:41:23Z")

</div>

You could do this by creating a custom badge [via the API](https://meta.discourse.org/t/grant-a-custom-badge-through-the-api/103270) or with [custom SQL](https://meta.discourse.org/t/some-common-badge-queries/31859) and then utilize the [User Group Membership Through Badges](https://meta.discourse.org/t/user-group-membership-management-through-badges/281836) feature to assign a user who has earned a badge to a group. That group can be configured to assign members a title, which can display next to their username on posts (like how my post has the `team` title)

---

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [April 30, 2025, 6:50am UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391/4 "2025-04-30T06:50:22Z")

</div>

Thanks for your reply.

I would go with custom SQL as the users will qualify dynamically based on their post count and like count.

That is useful, let me think of more ways on how best to use this automation. Hope adding 30 such rules won’t have a performance impact.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 30, 2025, 1:23pm UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391/5 "2025-04-30T13:23:27Z")

</div>

> [@SubStrider](#):
>
> Hope adding 30 such rules won’t have a performance impact.

They shouldn’t but if you encounter issues let us know!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 30, 2025, 1:23pm UTC](https://meta.discourse.org/t/creating-dynamic-titles-using-groups-or-badges/363391/6 "2025-05-30T13:23:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
