WordPress生成标签云标签:wp_generate_tag_cloud

WordPress模板标签wp_generate_tag_cloud用于生成标签名,必须传递一个包含标签信息的对象。 wp_generate_tag_cloud( object $tags, array $args = '' ) 函数参数$tags 对象,默认为空 必须传递一个包含 …

WordPress标签云标签:wp_tag_cloud

WordPress模板标签wp_tag_cloud用于输出标签云,标签的大小由该标签下的文章数量决定。 wp_tag_cloud( array $args = '' ) 函数参数$args数组或字符串值 wp_tag_cloud()函数$ …

WordPress获取Tag标题标签:single_tag_title

WordPress模板标签single_tag_title输出当前标签(Tag)的标题,一般用在标签页。 single_tag_title( string $prefix = '', boolean $display = true ) 函数参数$prefix 字符串值,默认为空 在标题前输出的字 …

WordPress获取Tag摘要标签:tag_description

WordPress模板标签tag_description用于获取标签的摘要,也就是获取标签设置里的“图像描述”内容,事实上tag_description()也可以获取分类的摘要,W …

WordPress作者元数据标签:the_author_meta

WordPress模板标签the_author_meta输出文章作者的元数据,如果在The Loop主循环之外使用,必须传递作者ID。 the_author_meta( string $field = '', integer $user_id = false ) 函数参数$field 字符串值 …

WordPress作者文章页面链接标签:the_author_posts_link

WordPress模板标签the_author_posts_link用于输出指向当前作者所有文章页面的链接,其中锚文本为作者个人资料里“公开显示为”设置的名称。 需要注意the_au …

WordPress作者文章数量标签:the_author_posts

WordPress模板标签the_author_posts输出当前作者发表的文章总数,不包含草稿、私密文章,必须用在The Loop主循环中。 the_author_posts() 函数使用示例<p>< …

WordPress作者链接标签:the_author_link

WordPress模板标签the_author_link输出带作者主页链接的作者名称,也就是作者在个人资料中设置的“站点”的链接,必须用在The Loop主循环中。 the_author_link() the_auth …

WordPress作者名称标签:the_author

WordPress模板标签the_author用于输出当前文章作者的名称,必须用在The Loop主循环中。 the_author() the_author()函数没有任何参数,直接调用即可。 函数使用示例&l …

WordPress判断文章是否属于某分类标签:in_category

WordPress模板标签in_category用于判断文章是否属于某分类,该函数只能在The Loop主循环中使用,如果有明确指定文章ID,那么可以在任何地方使用。 in_category( int|string|array $category, int|object $post = null ) …