<?PHP
$num_cats  = wp_count_terms('category'); 
echo $num_cats. '<br/>';    
?>

I get the number of total categories from the above code. How can I get the total categories based monthly archive? following code is not echoing the number of monthly archive:

<?php 
$num_month_cats  = wp_count_terms (get_archives('monthly')); 
echo $num_month_cats;
?> 

Any suggestion?

Read more here: How to count the number of monthly archive?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: