# How to add custom topic map code?

**URL:** <https://meta.discourse.org/t/how-to-add-custom-topic-map-code/288868>\
**Category:** Development\
**Tags:** topic-map\
**Created:** [December 15, 2023, 9:32pm UTC](https://meta.discourse.org/t/how-to-add-custom-topic-map-code/288868 "2023-12-15T21:32:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![amotl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amotl/32/109873_2.png) [@amotl](https://meta.discourse.org/u/amotl)\
**Post date:** [December 15, 2023, 9:32pm UTC](https://meta.discourse.org/t/how-to-add-custom-topic-map-code/288868/1 "2023-12-15T21:32:20Z")

</div>

Hi again, I am continuing the discussion from [Show topic-map without a reply](https://meta.discourse.org/t/show-topic-map-without-a-reply/87447/10), because it has been closed. \[1\]

> [@Show topic-map without a reply](https://meta.discourse.org/t/show-topic-map-without-a-reply/87447/10):
>
> There’s some useful info in this post that would help with this:  
> – [How to show topic-map on non-commented posts? - #15 by Don](https://meta.discourse.org/t/how-to-show-topic-map-on-non-commented-posts/204222/15)

That’s super sweet. Thank you, Jammy. May I humbly ask how/where this JavaScript snippet should be applied to make it work?

```javascript
<script type="text/discourse-plugin" version="0.8">
  api.includePostAttributes('topicMap');
</script>

```

* * *

1. a) Why? b) Feel free to refactor and/or re-open, as you see fit.

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-custom-topic-map-code/288868)._
