# How to change the posts category page URLs

**URL:** <https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486>\
**Category:** HivePress\
**Created:** [January 31, 2024, 2:07pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486 "2024-01-31T14:07:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dee](https://community.hivepress.io/user_avatar/community.hivepress.io/dee/32/6783_2.png) [@Dee](https://community.hivepress.io/u/Dee)\
**Post date:** [January 31, 2024, 2:07pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/1 "2024-01-31T14:07:05Z")

</div>

Hi there,

I want to create a page to display all posts of a single category. Can you please direct me to the template for the posts category page?

Thank you

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [February 1, 2024, 1:19pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/4 "2024-02-01T13:19:18Z")

</div>

Hi,

Please note that this is a WordPress functionality, each category has its own page. To open it, go to WP Dashboard \> Posts \> Categories \> and hover over the categories and click on the View button.

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![Dee](https://community.hivepress.io/user_avatar/community.hivepress.io/dee/32/6783_2.png) [@Dee](https://community.hivepress.io/u/Dee)\
**Post date:** [February 1, 2024, 1:35pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/5 "2024-02-01T13:35:48Z")

</div>

Hi Andrii,

No, I need the php template for the single category page. I want to change the urls from [example.com/category/news](http://example.com/category/news) to [example.com/news](http://example.com/news) - so I need to add the template for each category (specifically the loop that displays the posts and the sidebar). Please advise.

Thank you

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [February 2, 2024, 12:31pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/8 "2024-02-02T12:31:50Z")

</div>

Hi,

Regarding templates, please check this doc: [How to override template parts - HivePress Help Center](https://help.hivepress.io/article/155-how-to-override-template-parts) then you can change the `category.php` file. As for the URLs, please check this tutorial [Remove the Category Base from your URLs in WordPress](https://jonnyjordan.com/blog/how-to-remove-category-from-your-urls-in-wordpress/)

---

<div class="post-metadata">

**Author:** ![Dee](https://community.hivepress.io/user_avatar/community.hivepress.io/dee/32/6783_2.png) [@Dee](https://community.hivepress.io/u/Dee)\
**Post date:** [February 2, 2024, 1:58pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/9 "2024-02-02T13:58:05Z")

</div>

That is my problem. There is no category.php file in there. I’m wondering if its called something else? I need the posts page template.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [February 5, 2024, 2:13pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/12 "2024-02-05T14:13:12Z")

</div>

Hi,

Please make sure that you are familiar with customizations, as there is no such file in the theme, you need to create it in a child theme and already based on the `index.php` from the main theme. If you’re not familiar with customization, I recommend hiring someone on Fiverr or Upwork or using the following links [Remove the Category Base from your URLs in WordPress](https://jonnyjordan.com/blog/how-to-remove-category-from-your-urls-in-wordpress/)

---

<div class="post-metadata">

**Author:** ![Dee](https://community.hivepress.io/user_avatar/community.hivepress.io/dee/32/6783_2.png) [@Dee](https://community.hivepress.io/u/Dee)\
**Post date:** [February 7, 2024, 1:41pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/13 "2024-02-07T13:41:50Z")

</div>

Thanks Andrii. I didn’t want to remove the ‘category’ from all post urls, just wanted to display all posts of a category on a specific page. I found the loop that worked. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [March 8, 2024, 1:42pm UTC](https://community.hivepress.io/t/how-to-change-the-posts-category-page-urls/9486/14 "2024-03-08T13:42:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
