• Hi all,

    I am having trouble displaying the description of a category (<?php echo category_description(); ?>) on the archive page (archive.php). I am using this code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The title is referring to the correct category but the description always refers to the parent category.

    Furthermore, when on an archive page of a sub-category, the ‘Edit Category’ link in the Admin Bar links to the settings for the parent category. How can the subcategories and categories be distinguished from one another?

    Thanks in advance,
    Sam

  • The topic ‘Parent category and sub-category 'description' issues’ is closed to new replies.