get_calendar

SummerySummery

Display calendar with days that have posts as links.

Syntax

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

DescriptionDescription

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.

ParametersParameters

$initial

(bool) (Optional) Use initial calendar names.

Default value: true

$echo

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

Default value: true

ReturnReturn

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

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top