Enjoy Code! and share my blog with your friends.
<?php echo get_cat_name(1); //here 1 is the cat id ?>
How to get category title anywhere in your wordpress website?
Hello Everyone! If you want to retrieve the name of a category from its ID, then just use my code anywhere in your theme files where you want to show the category title.