By doing this:
if (has_tag( "my-tag-slug", $post )) { $postsTag = "my-tag-slug"; $tagImageFormat = ".jpg"; }
I get:
- a variable named $postsTag containing the string "my-tag-slug"
- a variable named $tagImageFormat containing the string ".jpg"
The name of the tag that has this slug is "My tag slug". How can I get the following:
- a variable named $postsTagName containing the string "My tag slug"
By using the slug I grabbed from the function?