我试图将标记名作为数组集合来提取,以便将它们作为一个简单的列表来写出来,没有链接,但返回的数组不会将名称作为不灵活的项发送。
array(2) {
[0]=> string(129) "<a href=\'#\' class=\'tag-link-31\' title=\'1 topic\' style=\'font-size: 8pt;\'>tag 1</a>"
[1]=> string(127) "<a href=\'#\' class=\'tag-link-30\' title=\'1 topic\' style=\'font-size: 8pt;\'>tag 2</a>"
}
有没有其他方法可以用来获取整个站点的标签集合,只需使用标签名称?这是我当前的代码,但由于数组索引,我也得到了链接。$tagNames = wp_tag_cloud(\'format=array\');
echo implode($tagNames,", ");