WordPress.org

Ready to get started?Download WordPress

Forums

Displaying a category's description (2 posts)

  1. Caylah
    Member
    Posted 1 year ago #

    I've been attempting to add my categories descriptions by adding:

    <?php
             echo category_description();
    ?>

    To my archive.php file.

    But it doesn't work at all, which I don't really understand.
    Is there a special place within the php.file you're ought to place it or does the code simply not work for this purpose?

    I'm using the theme Minimatic and my modifications is made within a childtheme.
    Here's the link to my site.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    if your theme has a category.php, then you need to add the changes there.

    http://codex.wordpress.org/Template_Hierarchy

Topic Closed

This topic has been closed to new replies.

About this Topic