# Tag experts plugin

**URL:** https://meta.discourse.org/t/tag-experts-plugin/355898
**Category:** Feature
**Created:** [March 5, 2025, 4:08pm UTC](https://meta.discourse.org/t/tag-experts-plugin/355898 "2025-03-05T16:08:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [March 5, 2025, 4:08pm UTC](https://meta.discourse.org/t/tag-experts-plugin/355898/1 "2025-03-05T16:08:07Z")

</div>

A bit of background first - I recently very radically restructured my 20+ year old forum to get rid of the 100-ish categories/sub-categories that had evolved over the years in favour of just 3 user-postable categories using tags to differentiate topics of interest. I think my users are currently wondering if I’ve lost my marbles 😆

One casualty of this that I didn’t think about until it was too late was category experts. I had this turned on for a couple of categories, but now I’ve made the experts from those specific categories experts for massive categories it doesn’t really make sense. In one respect it’s OK because the experts are good guys outside of their own field of expertise, but it is odd getting posts flagged as expert responses when you know the expert responding is really the expert in another field.

So, I’m wondering whether (1) a Tag Expert plugin would be achievable and (2) is it something that might be considered to be added in future?

Edit: I should add that this is a hobby board with zero income (apart from my pension) so I can’t offer any funding!

---

<div class="post-metadata">

### Author: ![markvanlan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markvanlan/32/160087_2.png) [@markvanlan](https://meta.discourse.org/u/markvanlan)
#### Post date: [March 5, 2025, 4:57pm UTC](https://meta.discourse.org/t/tag-experts-plugin/355898/2 "2025-03-05T16:57:36Z")

</div>

A “Tag Expert” plugin could absolutely be achievable. Given the complexity in the category expert plugin, I don’t think it would be a good idea to try to integrate into this plugin. A new plugin would probably be easiest.

There are certainly no plans to create this from the Discourse team but it’s a cool idea and it wouldn’t be too hard of a plugin to write (depending on feature set of course). You could try to work with AI to help you build something!

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [March 5, 2025, 5:43pm UTC](https://meta.discourse.org/t/tag-experts-plugin/355898/3 "2025-03-05T17:43:17Z")

</div>

> [@markvanlan](#):
>
> it wouldn’t be too hard of a plugin to write

Starting from my current knowledge of Ruby (pretty limited) and a look at the Category Experts code on github which is full of mysterious things like controllers, models and serializers, I’m not sure I’d agree with that. I think I’d nead a crash course on how Discourse plugins work before even AI could help me!

---

<div class="post-metadata">

### Author: ![markvanlan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markvanlan/32/160087_2.png) [@markvanlan](https://meta.discourse.org/u/markvanlan)
#### Post date: [March 5, 2025, 6:22pm UTC](https://meta.discourse.org/t/tag-experts-plugin/355898/4 "2025-03-05T18:22:01Z")

</div>

Well if all you want is “posts in a topic tagged with X, created by users in GroupA are decorated differently”, you don’t need controllers/models. The change is much more simple. It would be a site setting to define the tag ↔ group configuration, and then an addition to the `topic_list_item` serializer, and `post_serializer` to have an attribute like `tag_expert_post` accessible.

(Sorry, I know this is very in the weeds)

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [March 8, 2025, 9:39am UTC](https://meta.discourse.org/t/tag-experts-plugin/355898/5 "2025-03-08T09:39:24Z")

</div>

> [@markvanlan](#):
>
> if all you want is “posts in a topic tagged with X, created by users in GroupA are decorated differently”

If that would indeed be all, you’d have all selectors in the document already. So you can decorate with CSS, the pattern would be:

```plaintext
target the topic with a tag
  target the post by a member in a primary group
     decorate a part of the post

```

For example:

```plaintext
body.tag-expert-1 { 
  .topic-post.group-tag-experts-1 {
    .cooked {
      ...
    }
  }
}

```

This will only work for primary groups, as they are added to the post as a class selector.

Then you could get for example:

 ![Screenshot From 2025-03-08 09-36-04](https://global.discourse-cdn.com/meta/original/4X/8/3/8/838a47fc947f20e900767206e74997228b0b6bc9.png)

Or set slightly different styles for different Expert groups:

 ![The image is a screenshot of a website post titled "Confines" by Benedict.Boyer, featuring text about concluding notions, pride, rooftops, and reptiles, described as having "quiet." (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/9/d/99d44eedcfce983b4a61cba2de31567ff0e46e1d.png)

Had just done something similar recently:

> [@Gamification on a fantasy forum](https://meta.discourse.org/t/gamification-on-a-fantasy-forum/354514/1):
>
> _Scribes_ are the Experts group. Their posts are distinguished with a highlighted background:
> 
> ![Screenshot From 2025-02-20 16-48-11](https://global.discourse-cdn.com/meta/original/4X/0/7/4/07418ebd640e4a479f97a981b0e635199bb4b149.jpeg)
