I have this function in a theme I am using:
<?php echo $categories;?>
which echoes out the category ID such as cat=3
But how do I edit this so that it turns the cat=3 into the category name?
I've had a look at this and tried some options but no luck.