# Getting posts with mentioned tag

**URL:** https://meta.discourse.org/t/getting-posts-with-mentioned-tag/134615
**Category:** Development
**Created:** [November 28, 2019, 9:51am UTC](https://meta.discourse.org/t/getting-posts-with-mentioned-tag/134615 "2019-11-28T09:51:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![agmontpetit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agmontpetit/32/160109_2.png) [@agmontpetit](https://meta.discourse.org/u/agmontpetit)
#### Post date: [November 28, 2019, 9:51am UTC](https://meta.discourse.org/t/getting-posts-with-mentioned-tag/134615/1 "2019-11-28T09:51:55Z")

</div>

I’ve been looking into tags and tag groups and I think they are quite powerful. However, I’m missing a feature that I would consider implementing myself.

The idea is being able to see all posts that mention a category or tag (like #my-tag) – and not just the ones tagged as such – when someone visits the corresponding URLs:

- [https://meta.discourse.org/c/my-tag](https://meta.discourse.org/c/my-tag)
- [https://meta.discourse.org/tags/my-tag](https://meta.discourse.org/tags/my-tag)

Those pages would show both tagged posts and _mentions_.

What would be the best way to accomplish this? My initial idea would be to listen for post creation/edit/delete events and then look for the _hashtag_ elements within it. The plugin would keep DB records of which posts have mentions to tags.

Am I on the right path?
