# Link to Discourse topics in Wordpress Without Displaying Comments

**URL:** https://meta.discourse.org/t/link-to-discourse-topics-in-wordpress-without-displaying-comments/88486
**Category:** Administrators
**Tags:** wordpress, how-to
**Created:** [May 25, 2018, 10:56pm UTC](https://meta.discourse.org/t/link-to-discourse-topics-in-wordpress-without-displaying-comments/88486 "2018-05-25T22:56:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 25, 2018, 10:56pm UTC](https://meta.discourse.org/t/link-to-discourse-topics-in-wordpress-without-displaying-comments/88486/1 "2018-05-25T22:56:24Z")

</div>

The [WP Discourse](https://github.com/discourse/wp-discourse) plugin now has an option to link to Discourse topics without displaying comments underneath the post. This is enabled by selecting the **Link to Comments Without Displaying Them** option from the plugin’s Commenting settings tab. When you do that, you will find something like this displayed underneath your posts:

 ![20%20PM](https://global.discourse-cdn.com/meta/original/3X/f/4/f451ee6c93e883b02ca5995dd040b1204a3169ba.png)

That doesn’t look great, but you can add some styles to the link by targeting the `.wpdc-join-discussion-link` class.

 ![01%20PM](https://global.discourse-cdn.com/meta/original/3X/1/1/117a22f104594f33e3cb7735586f1a1c633b0e53.png)

As comments are added to the Discourse topic, the link text will be updated with the comments number:

 ![28%20PM](https://global.discourse-cdn.com/meta/original/3X/0/9/099a77ae97deff9da33dafbf3df8245f196f56dd.png)

 ![10%20PM](https://global.discourse-cdn.com/meta/original/3X/9/a/9a0913c0ab530ed44244325053e8519345e7aeac.png)

The text for the link can be customized through the plugin’s Text Content settings tab. The three settings that control the text are **Join Discussion Link: no Comments** , **Join Discussion Link: Comments Singular** , and **Join Discussion Link: Comments Plural**.

To further control the display of the link, you can hook into the `wpdc_join_discussion_link_text` filter. It is passed three parameters: `$link_text` (the text is based on the number of comments), `$comments_count`, and `$post_id`.
