WordPress Cheat Sheet / Tags – Part 4 [Category Tags]

Hello friends. Today I want to learn the Category Tags of WordPress theme. Lets start to learn.

Category Description   category_description();

Returns the description of a category defined in the category settings screen for the current category (Posts > Categories).

<?php echo category_description($category); ?>


Type: Integer

The numeric ID of the category for which the tag is to return the description. Defaults to the current category, if one is not set.

Single Cat Title   single_cat_title();

Displays or returns the category title for the current page. For pages displaying WordPress tags rather than categories (e.g. “/tag/geek”) the name of the tag is displayed instead of the category. Can be used only outside The Loop. Continue reading