WordPress模板标签the_tags用于在文章页输出标签链接
the_tags( string $before = null,string $sep = ‘,‘,string $after = ” )
函数参数
$before
字符串值,默认值:null
在标签链接前显示的文本。
$sep
字符串值,默认值:,
在每个标签链接之间显示的文本。
$after
字符串值,默认为空
在标签链接后显示的文本。
使用实例
the_tags('<div class="article-tags">','','</div>');
扩展阅读
使用函数时最好认真看看源码,顺便学习,对于制作wordpress主题有好处
the_tags()函数位于:wp-includes/category-template.php
相关函数:
get_tag()
get_tag_link()
get_tags()
get_the_tag_list()
get_the_tags()
is_tag()
single_tag_title()
tag_description()
wp_generate_tag_cloud()
wp_tag_cloud()
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。