# Adding the wp-id parameter to topics created through WordPress

**URL:** <https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630>\
**Category:** Development\
**Tags:** wordpress\
**Created:** [2017 年 6 月 16 日午後 6:30 UTC](https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630 "2017-06-16T18:30:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2017 年 6 月 20 日午後 6:21 UTC](https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630/7 "2017-06-20T18:21:15Z")

</div>

> [@blake](#):
>
> If there is no advantage to using one or the other right now, I’m going to push you do use the topic\_id in the metadata. I guess I’m having a hard time seeing the downside if you are already tracking the topic\_id that you couldn’t just hit the /t/{id}.json endpoint and get the title and the posts\_count?

Even better with the real `topic_id` you can listen to webhooks, and be way more efficient than regular API calls to data that didn’t change.

---

_[View the full topic](https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630)._
