WordPress月份归档页标题标签: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()
添加UTHEME为好友
扫码添加UTHEME微信为好友
· 分享WordPress相关技术文章,主题上新与优惠动态早知道。
· 微信端最大WordPress社群,限时免费入群。