get_calendar

TIME/DATE TAG

What It Does

Displays the calendar. By default, the current month and year will be displayed.

Code

<?php get_calendar(initial); ?>

Initial

Allows you to abbreviate the day to one or three letters.

  • False – Displays the three letter abbreviation (ie. “Mon”)
  • True – Displays the one letter abbreviation (ie. “M”) (default value)

Example

Displays the calendar with days using their one letter abbreviation:

<?php get_calendar(); ?>

Displays the calendar with days using their three letter abbreviation:

<?php get_calendar(false); ?>