# Shortcode for Comments

**URL:** https://meta.discourse.org/t/shortcode-for-comments/252387
**Category:** WordPress
**Created:** [January 20, 2023, 6:28am UTC](https://meta.discourse.org/t/shortcode-for-comments/252387 "2023-01-20T06:28:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TEKFused](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tekfused/32/289343_2.png) [@TEKFused](https://meta.discourse.org/u/TEKFused)
#### Post date: [January 20, 2023, 6:28am UTC](https://meta.discourse.org/t/shortcode-for-comments/252387/1 "2023-01-20T06:28:31Z")

</div>

I know there is a Discourse block for the comments, but is there a shortcode as well? If so, could you let me know where I can find the shortcode’s parameters? Thank you!

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [January 20, 2023, 10:53am UTC](https://meta.discourse.org/t/shortcode-for-comments/252387/2 "2023-01-20T10:53:55Z")

</div>

Hey @TEKFused, there is currently a separate plugin for [WP Discourse](https://github.com/discourse/wp-discourse) shortcodes.

[https://github.com/communiteq/wp-discourse-shortcodes](https://github.com/communiteq/wp-discourse-shortcodes)

It’s on my overall agenda to merge this into the main [WP Discourse](https://github.com/discourse/wp-discourse) plugin. However there isn’t a Comments shortcode that works in the way you’re anticipating.

Can I ask is there a reason you prefer shortcodes over the new block? In general Wordpress is moving away from shortcodes to blocks.

> [@WP Discourse Comments Block](https://meta.discourse.org/t/wp-discourse-comments-block/249790):
>
> From version 2.4.7, the [WP Discourse](https://github.com/discourse/wp-discourse) Plugin includes a Discourse Comments block for the Block Editor. The Discourse Comments block is primary way to add Discourse Comments to a block-enabled theme such as Twenty Twenty Three. Here’s a short video on how to use the Discourse Comments block Next Step If you haven’t yet, make sure you check out: [Using Discourse for Wordpress Comments](https://meta.discourse.org/t/wp-discourse-and-commenting/223493)Notes The Discourse Comments block does not currently support the “Load Comments With Ajax” setting. To learn…

---

<div class="post-metadata">

### Author: ![TEKFused](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tekfused/32/289343_2.png) [@TEKFused](https://meta.discourse.org/u/TEKFused)
#### Post date: [January 20, 2023, 3:12pm UTC](https://meta.discourse.org/t/shortcode-for-comments/252387/3 "2023-01-20T15:12:47Z")

</div>

Angus, thank you! I’ll check out that plugin! Is there is a way to use one of those shortcodes to display a specific topic by using its URL?

The reason for my request is I’m using a page builder that doesn’t support blocks. The other issue is that I’m using a LMS that has a lecture description field which also doesn’t support blocks.

Hopefully that makes sense, thank you!

Jake

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [January 21, 2023, 11:01am UTC](https://meta.discourse.org/t/shortcode-for-comments/252387/4 "2023-01-21T11:01:10Z")

</div>

Hey Jake,

No there isn’t a shortcode for displaying the posts from a specific topic. I see from another topic that you’re using Beaver Builder. Have you tried using the reusable blocks module?

[https://docs.wpbeaverbuilder.com/beaver-builder/layouts/modules/reusable-blocks/](https://docs.wpbeaverbuilder.com/beaver-builder/layouts/modules/reusable-blocks/)

---

<div class="post-metadata">

### Author: ![TEKFused](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tekfused/32/289343_2.png) [@TEKFused](https://meta.discourse.org/u/TEKFused)
#### Post date: [January 21, 2023, 5:38pm UTC](https://meta.discourse.org/t/shortcode-for-comments/252387/5 "2023-01-21T17:38:20Z")

</div>

Hi Angus, I wasn’t aware of their reusable block module, thank you!

I’d love to see the Discourse shortcode plugin enhanced so that we could have a shortcode used to show a topic’s comments, and have a parameter for a post ID (the default behavior would be to show the current post’s Discourse comments).

Thank you again!

Jake
