total post count of a category and its child categories wordpress

Use following code to get total posts count of a category and all its child categories. To use this code you have to add following function inside your themes functions.php file And yo use this code to display post count call this function anywhere inside your wordpress template files as This code snippet is useful to…