Site logo

Archived topic

Custom category page

5 replies · Started by ville on May 9, 2019

Viewing posts 1–6 of 6

I am trying to achieve custom category pages. Lets say I have a category about shoes. I have three different types of shoes: red, black and aquamarine.

mysite.com/shoes/red
mysite.com/shoes/black
mysite.com/shoes/aquamarine

and accordingly the breadcrumb would be home -> shoes -> red. And so on.

Instead of mysite.com/shoes/ category page showing the archive for the above-mentioned three posts, I would want to create it as a custom page. The page would have different elements, such as images, CTAs, table and what not, so the traditional category archive would not work.

It sounds like a straight-forward and common use case, but I have not been able to find a way to do it! I believe these three support posts are closely related to what I mean:

https://generatepress.com/forums/topic/custom-design-for-your-category-pages/
https://generatepress.com/forums/topic/replace-default-post-category-template-with-a-blank-page-template/
https://generatepress.com/forums/topic/customize-category-pages/

Thank you very much in advance!

Hi there,

I would say try creating a CPT called Shoes, then you can create 3 static pages under it called red, black, and aquamarine.

Then you can add the desired elements to each of those pages, then use WP Show Posts to show the posts of each of those categories:
https://wordpress.org/plugins/wp-show-posts/

I used the same idea for this site: https://leohsiang.com/vacation/

The CPT in my case is called Accommodations.

Let me know if this helps :)

Hi,

Thank you for your quick reply!

I think that might actually work! In your example it seems to work too, however, I cant see the "accommodations" page itself, but I think this is just a decision by you not to have that particular page? I imagine you could customize that "accommodations" page to your liking if you would choose to have it?

Thanks again

Hmm no. Accommodations is a CPT so it cannot be customized like that.

Might be good to do a little bit of reading on CPT and see how they work.

That being said, you could just create a new static page called Accommodations as well.

So to achieve what I am after I could create the CPT for those three pages, and then one static page called shoes?

Would that static page work as the category page then? breadcrumbs leading to it etc?

Or what would you suggest to do to achieve that set up?

I think that should work.

Give it a shot first?

This archived topic is closed to new replies.