WordPress日历标签:get_calendar

WordPress模板标签get_calendar用于输出日历,如果某天有发表文章,点击该日期可以到达该日期归档页面。

get_calendar( boolean $initial = true, boolean $echo = true )

函数参数

$initial

布尔值,默认值:true

如果为false,则显示为本地化的日期

$echo

布尔值,默认值:true

如果为false,则只返回结果,不直接输出。

函数使用示例

<?php get_calendar(false); ?>

扩展阅读

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

相关函数:

阿里云