Getting posts with mentioned tag

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:

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?

1 Like