Site logo

Archived topic

Add archives description

5 replies · Started by Daniele on November 20, 2020

Viewing posts 1–6 of 6

Hello,
how can I show tanoxomies description in the archives?

thanks

Hi there,

you can display the description in the Header Element by adding this template tag to its content:

{{custom_field.description}}

Thanks, does it also work with hooks?
I would like to output after the header

You can't use {{template_tags}} in hooks.
Instead you could add this to a Hook:

<header class="page-header grid-container">
    <div class="taxonomy-description inside-article">
        <p><?php echo category_description(); ?></p>
    </div>		
</header>

The generate_after_header hook with a priority of 25 will place it after the header element. Make sure you check Execute PHP in the hook.

Thanks!

You're welcome

This archived topic is closed to new replies.