/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$totalposts = get_category_by_slug("mycategoryname")->category_count;
Comments

$totalposts = get_category_by_slug("mycategoryname")->category_count;