我创建一个wordpress主题,并使用get_archives_link
列出所有存档信息。尝试从get_archives_link剥离li标签
get_archives_link
作为默认显示归档列表缠绕<li></li>
标签如下。
<li><a href='http://localhost/blog/?m=201505'>May 2015</a></li>
但我想接着显示为一个href,而不是像下面的例子:
<a href='http://localhost/blog/?m=201505' class="list-group-item">May 2015</a>
我如何能解决这个得到任何想法?
谢谢!
是'li's和'a's的只有存在于字符串中的元素?如果是这样的话http://php.net/manual/en/function.strip-tags.php就足够了。 'strip_tags($ input,'');' – chris85