Template Tags/get calendar

Материал из WordPress Wiki

Перейти к: навигация, поиск

Содержание

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

Шаблон:Tag General Tags

Шаблон:Tag Footer

Реклама

24 Market florex люстры.