How to show child category title (1 post)

  1. katalonian
    Posted 5 years ago #

    Hi. I create a post and give to post category named (for example)Criminal, which is child category of Movie Types, and on page i want to show the title of this child category and the description.
    For this, in the Loop i using

    <?php  single_cat_title(); ?>
       	<?php echo category_description(); ?>

    But loop showing me the title and description of main category. How to show only child category information?

Topic Closed

This topic has been closed to new replies.

About this Topic