Archived topic
Archive description
3 replies · Started by Jacopo on April 17, 2021
Hi, I want to show a description on my post archives (categories).
If I write something in the description space I can't see it (screenshot)

I'm using your "Donate" template.
Hi there,
Since you're using the Header Element, you'll need to add a Template Tag for the description: https://docs.generatepress.com/article/header-element-template-tags/
In this case, it would be: {{custom_field.description}}
Maybe I couldn't explain myself.
I would like to put additional text on the Category page, not a small description with a custom field.
This will include some paragraphs, h2, a table, etc.
How do I get that description to display?
You seem to be using rich text editor for the category description.
Adding HTML should work on its text tab. That's where you can add your h2, table etc.
Alternatively, you can use something like this plugin.
https://wordpress.org/plugins/allow-html-in-category-descriptions/
With this, you should be able to use custom HTML structure and display it.
Note: {{custom_field.description}} gets whatever was placed on the category description. If you've placed simple text, it will only display simple text. If you placed custom HTML, it will render the custom HTML assuming you have a plugin that allows the writing of custom HTML on the category description field.