首页 WordPress函数大全 get_calendar()

get_calendar()

2020-05-01 / 5826阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

Display calendar with days that have posts as links.

描述

The calendar is cached, which will be retrieved, if it exists. If there are no posts for the month, then it will not be displayed.

参数

$initial

(bool)
(Optional)
Use initial calendar names.

Default value: true

$echo

(bool)
(Optional)
Set to false for return.

Default value: true

返回

(void|string) Void if $echo argument is true, calendar HTML if $echo is false.

大家谈论
    我的见解