[Support request] Add archives description

Home Forums Support [Support request] Add archives description

Home Forums Support Add archives description

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1538735
    Daniele

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

    thanks

    #1538740
    David
    Staff
    Customer Support

    Hi there,

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

    {{custom_field.description}}

    #1538804
    Daniele

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

    #1538810
    David
    Staff
    Customer Support

    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.

    #1539056
    Daniele

    Thanks!

    #1539826
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.