# Order blog posts by 'Most Viewed'

**URL:** <https://community.hubspot.com/t/order-blog-posts-by-most-viewed/16023>\
**Category:** CMS Development\
**Tags:** content\
**Created:** [August 30, 2019, 9:07am UTC](https://community.hubspot.com/t/order-blog-posts-by-most-viewed/16023 "2019-08-30T09:07:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenparratt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevenparratt/32/13631_2.png) [@stevenparratt](https://community.hubspot.com/u/stevenparratt)\
**Post date:** [August 30, 2019, 9:07am UTC](https://community.hubspot.com/t/order-blog-posts-by-most-viewed/16023/1 "2019-08-30T09:07:55Z")

</div>

I was wondering if there was a way to order the blog posts by their view data, so that the most viewed blog posts appear at the top of the blog listing page?

---

<div class="post-metadata">

**Author:** ![BenSBM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bensbm/32/75413_2.png) [@BenSBM](https://community.hubspot.com/u/BenSBM)\
**Post date:** [August 30, 2019, 1:19pm UTC](https://community.hubspot.com/t/order-blog-posts-by-most-viewed/16023/2 "2019-08-30T13:19:14Z")

</div>

Hi Steven,

I’m not sure there is a default way to do this for a blog listing page. There is however a function or module that can be used to display popular posts, which could be used in a sidebar on the blog listing page, or a separate page template.

See [HubL functions - HubSpot docs](https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-popular-posts) for more info on this module or [HubL functions - HubSpot docs](https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-popular-posts) for info on the HubL function.

---

<div class="post-metadata">

**Author:** ![stevenparratt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevenparratt/32/13631_2.png) [@stevenparratt](https://community.hubspot.com/u/stevenparratt)\
**Post date:** [September 2, 2019, 3:58pm UTC](https://community.hubspot.com/t/order-blog-posts-by-most-viewed/16023/3 "2019-09-02T15:58:29Z")

</div>

Thank you for the response, I’ll look in to this 🙂
