首页 » 网站推广 » phptag函数技巧_WordPress获取文章Tag标签的函数the_tags

phptag函数技巧_WordPress获取文章Tag标签的函数the_tags

访客 2024-12-03 0

扫一扫用手机浏览

文章目录 [+]

the_tags( string $before = null, string $sep = ‘, ‘, string $after = ” )

函数参数

$before字符串值,默认值:null在标签链接前显示的文本。

phptag函数技巧_WordPress获取文章Tag标签的函数the_tags

$sep字符串值,默认值:,在每个标签链接之间显示的文本。

phptag函数技巧_WordPress获取文章Tag标签的函数the_tags
(图片来自网络侵删)

$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()

标签:

相关文章

招商蛇口中国房地产龙头企业,未来可期

招商蛇口(股票代码:001979),作为中国房地产企业的领军企业,自成立以来始终秉持“以人为本,追求卓越”的经营理念,致力于打造高...

网站推广 2025-02-18 阅读1 评论0