How to Display Category Descriptions in WordPress

,



First Add the category description, goto Posts » Categories and add the category description


Goto theme folder.

Now you will need to locate and edit category.php file. If your theme doesn’t have category.php file, then you will need to edit archive.php file.

Copy and paste this code where you would like the category description to be displayed.

<?php 
 the_archive_description( '<div class="description">', '</div>' ); 
?>

Display Category Description in WordPress Theme

If you want to display category description inside a single post, then you can use this code.

$catID = get_the_category();
echo category_description( $catID[0] ); 






Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.