Site logo

Archived topic

Custom category page

7 replies · Started by Evan on July 29, 2021

Viewing posts 1–8 of 8

Hi,

I'm looking to design pages similar to https://vailchamber.org/loc/vail/ using categories so that the client just has to create a new post and choose the category for the business to show up under.

I can see how to recreate this one by one with grid and containers but I'd rather avoid having to do that. Is there a better option than categories perhaps or suggestions on how to create something similar?

Thanks!

Hi there,

the Block Element - Content Template will allow you build your own content templates for archives ( and single posts ):

https://docs.generatepress.com/article/block-element-content-template/

As well as Dynamic content you can set the Display Rules to apply to specific archives eg. Category Archive > Business.

If the Single Post within that Category has Custom Fields ( Post Meta ) such as storing the web address or other details. Then those can be called in the template using the Dynamic data options:

https://docs.generatepress.com/article/dynamic-data/

The same can be applied if you were to create a Custom Post Type for this content.

Thank you, I will try out your suggestions. I appreciate the help!

You're welcome

I have been trying this but unsuccessfully. Perhaps since I don't have any custom fields I can not "If the Single Post within that Category has Custom Fields ( Post Meta ) such as storing the web address or other details"? I'm not sure how to set that up

sending a private message...

Hi there,

I have been trying this but unsuccessfully. Perhaps since I don’t have any custom fields I can not “If the Single Post within that Category has Custom Fields ( Post Meta ) such as storing the web address or other details”? I’m not sure how to set that up

Yeah this is important if you want to display something that isn't in the default post meta like the ones I highlighted here - https://share.getcloudapp.com/RBuLNyzO This is actually vital because if we don't have these, we don't have anything to pull data from. :D

You can use ACF. https://wordpress.org/plugins/advanced-custom-fields/

Create fields for URL and address and then associate it with single posts.

You then fetch them as dynamic data on the Block Element.

This archived topic is closed to new replies.