get_calendar
get_calendar ( $args = array() )
Parameters:- (array) args { Optional. Arguments for the `get_calendar` function. @type bool $initial Whether to use initial calendar names. Default true. @type bool $display Whether to display the calendar output. Default true. @type string $post_type Optional. Post type. Default 'post'. }
Returns:- (void|string) Void if `$display` argument is true, calendar HTML if `$display` is false.
Defined at:Change Log: - 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.