Get Category Description In Head Meta Description Tag

Add a meta description tag to the head of a category page in WordPress. This will output a head meta description tag on category pages and/or archive pages.

This goes inside header.php.

if(is_category()) { ?>
     echo '<meta name="description" content="'. category_description( $category_id ). '" />';
}

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]