single_month_title()

WordPress月份归档页标题函数

WordPress模板函数single_month_title仅在月份归档页输出年月标题,即使年份归档页也不会输出任何内容。

single_month_title( string $prefix = '', boolean $display = true )

函数参数

$prefix

字符串值,默认为空

在输出的月份归档标题内容前输出

$display

布尔值,默认值:true

输出标题还是只返回值,默认输出。

函数使用示例

<p><?php single_month_title('<br />') ?></p>

扩展阅读

single_month_title()函数位于:wp-includes/general-template.php

相关函数:

get_the_date()
get_the_time()
the_date()
the_modified_date()
get_the_modified_date()
the_modified_time()
get_the_modified_time()
the_time()

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索