I have the tag ID, in integer format.

I want to convert this to the tag name. e.g. “cars”

How do I do this?

1
1

Use get_tag.

$tag = get_tag(2); // <-- your tag ID
echo $tag->name;

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *