【发布时间】:2014-05-26 15:26:49
【问题描述】:
我想在 Twitter 上分享一篇 wordpress 帖子。我正在使用这个:
<a href="https://twitter.com/share?url=<?php the_permalink() ?>&text=<?php the_title() ?>&via=<?php the_author() ?>&hashtags=<?php the_tags('', '') ?>" ></a>
我的问题是the_tags() 打印了<a> 标签内的标签!
我知道主题标签应该在 URL 上用逗号分隔。
那么我怎样才能使用the_tags('', '')(它用逗号分隔标签作为标签需要)作为twitter标签?
我很欣赏没有插件的解决方案 谢谢
【问题讨论】: