Total number of categories

Would you like to display the total number of posts, and categories for your WordPress-powered website? Adding this code snippet to your wordpres theme will display the total number of categories. Here is the code that can make it happen.

 

 

<?
$numcats = wp_count_terms('category');
echo $numcats;
?>

Be Sociable, Share!

Leave a comment