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:
  • 6: .

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.

Related Functions

get_locale, get_catname, get_cat_name, get_category, get_children

Top Google Results

User discussions

wpseek mobile