Archived topic
Add content to Category Archieves (from Genesis to GeneratePress)
1 reply · Started by Charles on November 17, 2022
I am moving a site over from a Genesis child them to GeneratePress. In Genesis, there was a build in area in Category to add "Archive headline", Archive Intro Text, "Featured Image" etc all below the standard input areas for categories. This way I can add text and images before the category post lists to help them rank and act like ahub. Is there a way to add support for this by adding something to functions or a way without a plugin?
Here is a screenshot from in the Wp Admin for the area in categories that comes up when I have the Genesis theme active. If I change to the GeneratePress theme the area disappears but then if reactive the genesis child theme it comes back with all the data loaded in.
Screenshot: https://share.getcloudapp.com/wbuvZznA
Hi Charles,
These are Custom meta fields.
You'll need a plugin or custom code to add those. What we recommend is ACF plugin. See here: https://www.advancedcustomfields.com/resources/getting-started-with-acf/
After you've added ACF you can add such a field, you can use a Block Element - Page Hero with GenerateBlocks Headline and Image Blocks to retrieve those.
Reference: https://docs.generatepress.com/article/block-element-page-hero/
Headline Block: https://docs.generateblocks.com/article/headline-overview/
Image Block: https://docs.generateblocks.com/article/image-overview/
Both of these Block have dynamic settings to retrieve metadata.