# Custom code in blog listing page

**URL:** <https://community.hubspot.com/t/custom-code-in-blog-listing-page/103217>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [March 22, 2024, 2:36pm UTC](https://community.hubspot.com/t/custom-code-in-blog-listing-page/103217 "2024-03-22T14:36:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulawoj](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@Paulawoj](https://community.hubspot.com/u/Paulawoj)\
**Post date:** [March 22, 2024, 2:36pm UTC](https://community.hubspot.com/t/custom-code-in-blog-listing-page/103217/1 "2024-03-22T14:36:26Z")

</div>

Hi,  
I want to add menu categories to my blog listing page. I found here: [https://community.hubspot.com/t5/CMS-Development/Blog-list-page-as-tabs-with-categories-on-each-tab/m-p/305733?profile.language=en](https://community.hubspot.com/t5/CMS-Development/Blog-list-page-as-tabs-with-categories-on-each-tab/m-p/305733?profile.language=en)  
that it can be done as custom code but I don’t know how I can add it to the page. Is it some special module?  
Regards Paula

---

<div class="post-metadata">

**Author:** ![felixmacaspac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/felixmacaspac/32/33923_2.png) [@felixmacaspac](https://community.hubspot.com/u/felixmacaspac)\
**Post date:** [March 22, 2024, 4:33pm UTC](https://community.hubspot.com/t/custom-code-in-blog-listing-page/103217/2 "2024-03-22T16:33:50Z")

</div>

Hey @Paulawoj you can make it as a custom module or add it directly in the blog listing template. Personally, I prefer to create a custom module first then use that module inside the blog listing template.  
You can check this [link](https://developers.hubspot.com/docs/cms/hubl/functions#blog-tags) to learn more on how to fetch all the categories from a specific blog.

---

<div class="post-metadata">

**Author:** ![Paulawoj](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@Paulawoj](https://community.hubspot.com/u/Paulawoj)\
**Post date:** [March 25, 2024, 12:13pm UTC](https://community.hubspot.com/t/custom-code-in-blog-listing-page/103217/3 "2024-03-25T12:13:06Z")

</div>

@felixmacaspac Thank you! this is very helpful, it works
