get_calendar
get_calendar ( $initial = true, $display = true )
Parameters:- (bool) initial Optional. Whether to use initial calendar names. Default true.
- (bool) display Optional. Whether to display the calendar output. Default true.
Returns:- (void|string) Void if `$display` argument is true, calendar HTML if `$display` is false.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Displays 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.