Using Tag as a Variable
I need to use a tag (e.g.,
single_post_title()) as a traditional variable (e.g.,
$single_post_title) but I can’t figure out how to do it.
(It has to be a variable so that I can pass it through to a template coming from outside the WordPress software.)
What’s the trick?
I’ve searched the Codex and Support forums extensively, but I’m not having any luck finding an answer.
Thanks in advance for any help!
- The topic ‘Using Tag as a Variable’ is closed to new replies.