- This topic has 5 replies, 2 voices, and was last updated 4 years ago by
Leo.
-
AuthorPosts
-
May 9, 2019 at 7:03 am #894184
ville
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/aquamarineand 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!
May 9, 2019 at 9:06 am #894337Leo
StaffCustomer SupportHi 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 🙂
May 9, 2019 at 10:40 am #894436ville
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
May 9, 2019 at 10:49 am #894447Leo
StaffCustomer SupportHmm 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.
May 9, 2019 at 10:20 pm #894836ville
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?
May 10, 2019 at 9:24 am #895515Leo
StaffCustomer SupportI think that should work.
Give it a shot first?
-
AuthorPosts
- You must be logged in to reply to this topic.