Parent category and sub-category 'description' issues (1 post)

  1. baldwinsam
    Posted 4 years ago #

    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,

Topic Closed

This topic has been closed to new replies.

About this Topic