【发布时间】:2013-04-18 06:27:41
【问题描述】:
在 Wordpress 中,以下内容将在存档列表中回显当前选择的标签:
single_tag_title();
有谁知道如何将它存储在一个变量中,这样我就可以使用这样的普通 php 变量来回显相同的字符串:
echo $tagSlug; //This shows the same string as the single_tag_title() function
我试过这个:
$tagSlug = single_tag_title();
echo $tagSlug;
但它不起作用。
【问题讨论】:
标签: wordpress variables tags echo archive