# Display Like Counts on Home Page Topic List

**URL:** https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742
**Category:** Support
**Created:** [09.Март.2017 16:33:07 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742 "2017-03-09T16:33:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Aislinn\_Chen](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Aislinn\_Chen](https://meta.discourse.org/u/Aislinn_Chen)
#### Post date: [09.Март.2017 16:33:07 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/1 "2017-03-09T16:33:07Z")

</div>

Is it possible to display like counts on the home topic list next to “Replies”?

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [09.Март.2017 16:47:22 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/2 "2017-03-09T16:47:22Z")

</div>

Yes, just add:  
`/?order=op_likes`  
at the end of your URL.

Example:  
[Discourse Meta](https://meta.discourse.org/?order=op_likes)

---

<div class="post-metadata">

### Author: ![Aislinn\_Chen](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Aislinn\_Chen](https://meta.discourse.org/u/Aislinn_Chen)
#### Post date: [09.Март.2017 16:56:44 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/3 "2017-03-09T16:56:44Z")

</div>

does it mean we have to change the home page URL to this in our application set up?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [09.Март.2017 21:33:24 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/4 "2017-03-09T21:33:24Z")

</div>

Use this script, add it in `admin/customize/css_html` in the `</body>` tab

```
<script>
var TopicListComponent = require('discourse/components/topic-list').default;
TopicListComponent.reopen({
    showLikes: true
});
</script>

```

It shows the column Like in your homepage between the columns Replies and Views.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [19.Июнь.2018 06:32:06 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/5 "2018-06-19T06:32:06Z")

</div>

Thanks Daniela! 2 questions though if you don’t mind:

- Will this perform any additional HTTP requests to the server? I’m on a high traffic server and need to be careful with adding more load.
- Can you also make this show only the op\_likes?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [19.Июнь.2018 08:57:32 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/6 "2018-06-19T08:57:32Z")

</div>

> [@bartv](#):
>
> Will this perform any additional HTTP requests to the server?

No.

> [@bartv](#):
>
> Can you also make this show only the op\_likes?

In that case you have to set `showOpLikes: true` in above code instead of `showLikes`.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [19.Июнь.2018 09:00:45 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/7 "2018-06-19T09:00:45Z")

</div>

> [@vinothkannans](#):
>
> In that case you have to set `showOpLikes: true` in above code instead of `showLikes` .

Hmm, when I do that the likes column will be displayed, but not a single post displays a like. I did confirm that several of them have likes on the OP.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [19.Июнь.2018 09:20:21 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/8 "2018-06-19T09:20:21Z")

</div>

Then you have to use [above solution](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/2) from SidV. That will work perfectly.

---

<div class="post-metadata">

### Author: ![rlaliberty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rlaliberty/32/96258_2.png) [@rlaliberty](https://meta.discourse.org/u/rlaliberty)
#### Post date: [20.Июль.2018 17:11:20 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/9 "2018-07-20T17:11:20Z")

</div>

Could anyone tell me how to modify the above code from @dax so it just shows Likes on one subforum?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [18.Февраль.2021 02:21:44 UTC](https://meta.discourse.org/t/display-like-counts-on-home-page-topic-list/58742/10 "2021-02-18T02:21:44Z")

</div>


