# {more\_replies} sometimes returns no value

**URL:** https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165
**Category:** WordPress
**Created:** [July 31, 2017, 12:23pm UTC](https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165 "2017-07-31T12:23:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![erikmolenaarnl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erikmolenaarnl/32/76132_2.png) [@erikmolenaarnl](https://meta.discourse.org/u/erikmolenaarnl)
#### Post date: [July 31, 2017, 12:23pm UTC](https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165/1 "2017-07-31T12:23:37Z")

</div>

Hi there,

I notice the variable **{more\_replies}** sometimes does **not return a value**.  
On most posts it works, but for some, it just returns a blank: [Welcome - TechSmith Screencast](https://www.screencast.com/t/R02jRiiULe5k)

Check out live URL: [Radware Captcha Page](https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/introduction-to-ethernet/)

Please note I changed the template via filter discourse\_replies\_html, but this is still the case on the default Discourse templates (by removing the filter). I did not see any errors in my PHP logs.

---

<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: [July 31, 2017, 3:37pm UTC](https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165/2 "2017-07-31T15:37:06Z")

</div>

> [@erikmolenaarnl](#):
>
> I notice the variable {more\_replies} sometimes does not return a value.

If there are no more replies, then it just returns an empty string. For this post [Radware Captcha Page](https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/introduction-to-ethernet/) what I’m seeing is 3 replies on the forum and 3 replies displayed on WordPress, so `more_replies` is returning an empty string. Are there cases on your site where there are more replies on the forum than are displayed on WordPress and the `more_replies` text is empty?

I see that I should add a filter to the `more_replies` text. I can do that right away.

---

<div class="post-metadata">

### Author: ![erikmolenaarnl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erikmolenaarnl/32/76132_2.png) [@erikmolenaarnl](https://meta.discourse.org/u/erikmolenaarnl)
#### Post date: [August 1, 2017, 7:00am UTC](https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165/3 "2017-08-01T07:00:39Z")

</div>

Hi Simon,

I get it now, thanks. Since there are no more hidden replies, the string returns an empty string. Clear!

But still, there is a hyperlink with no link text, shouldn’t this be fixed?

Looking forward to your reply. Thanks!

---

<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: [August 1, 2017, 8:10am UTC](https://meta.discourse.org/t/more-replies-sometimes-returns-no-value/67165/4 "2017-08-01T08:10:06Z")

</div>

> [@erikmolenaarnl](#):
>
> But still, there is a hyperlink with no link text, shouldn’t this be fixed?

I think in the default template it renders a `p` tag with no content when there are no replies. It doesn’t need to do that. I’ll fix it
