Archived topic
"VOLUME" - make a page of post by category / head with a featured image
5 replies · Started by luisjavier on March 30, 2022
Hello I use the theme "Volume". My question: how could I make a page that includes the posts of a category and has the same format as a simple post (including header with featured image)?
Thanks very much
Hi there,
do you mean a category archive page ? Like this one on the original Volume Site:
Hi David,
Thank you for quick response. That's it. How could I put in the header, a hero of the category? Similar to Single Post Hero.
Thanks very much
Use a Block Element - Page Hero ( in Appearance > Elements ):
https://docs.generatepress.com/article/block-element-page-hero/
Now by default WP doesn't provide Featured Images for Categories. So theres a few options:
1. Create an individual Page Hero for each of your categories and set the Display Rules > Location to: Category Archive > your category term
2. Create a single Page Hero for each of your categories and set the Display Rules > Location to: Category Archive > All Categories
And use the Dynamic Background Image > Featured Image option:
https://docs.generatepress.com/article/dynamic-data/#dynamic-background
This will use the Featured image of the latest post in that category.
3. Install the ACF plugin and do some custom work to add a Featured Image field to the Categories.
You can the use option #2 above, but instead of the featured image, you would use Post Meta > Your ACF Field for the background
Very, very thanks,
I will try.
Let us know how you get on.