# Come inserire l'ID dell'argomento corrente nel primo post

**URL:** <https://meta.discourse.org/t/how-to-insert-current-topic-id-to-the-first-post/162214>\
**Category:** Product Support\
**Created:** [27 Agosto 2020, 8:30am UTC](https://meta.discourse.org/t/how-to-insert-current-topic-id-to-the-first-post/162214 "2020-08-27T08:30:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [27 Agosto 2020, 9:44am UTC](https://meta.discourse.org/t/how-to-insert-current-topic-id-to-the-first-post/162214/2 "2020-08-27T09:44:34Z")

</div>

Se si tratta di più post, allora usare un div con data- rende più semplice utilizzare api.onPageChange + querySelectorAll per invertire l’iframe.

---

_[View the full topic](https://meta.discourse.org/t/how-to-insert-current-topic-id-to-the-first-post/162214)._
