Codex

Template Tags/get calendar

Contents

Description

Displays the calendar (defaults to current month/year). Days with posts are styled as such. This tag can be used anywhere within a template.

Usage

 <?php get_calendar(); ?> 

Examples

Default Usage

Displays calendar highlighting any dates with posts.

 <?php get_calendar(); ?> 

Displays Weekday Abbrevations

Display days using one-letter initial only; in 1.5, displays initial based on your WordPress Localization.

<?php get_calendar(true); ?>

Parameters

initial 
(boolean) If true, the day will be displayed using a one-letter initial; if false, an abbreviation based on your localization will be used. For example:
  • false causes "Sunday" to be displayed as "Sun"
  • true (default) causes it to be "S"

Related

bloginfo, bloginfo_rss, get_bloginfo, get_bloginfo_rss, wp_title, get_archives, wp_get_archives, get_calendar, get_posts, wp_list_pages, wp_dropdown_pages, wp_loginout, wp_register, query_posts, rss_enclosure

How to pass parameters to tags

Go to Template Tag index