I wanted to fetch the TAG Name with Tag ID, I tried it using get_tag() function but it doesn’t print anything.
<?php
$certification = get_tag(13);
echo $certification->name; ?>
As I checked there is a Tag available in my wordpress with ID 13
can someone help to fix?
3
Answers
You can try this code –
You can use this code for getting the term name by id
Hope it will work as I have tried it and working perfectly.