Showing category description in ETHOS

Hi,

I’ve followed this thread:

And it does change the header but it just says:

<Below you’ll find a list of all posts that have been categorized as

I want it include the text i’ve entered in the description box when editing a category.

Can you help?

-Alex

Hi Alex,

Please find this code:

<p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>

And change to this:

<p class="p-landmark-sub"><span><?php echo is_category() ? category_description() : $subtitle ?></span></p>

For more information about the category description, please take a look at this: https://codex.wordpress.org/Function_Reference/category_description.

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.