get_calendar – WordPress*リファレンス
カレンダー(現在の月/年をデフォルトとする)を表示します。 ポストがある何日もそういうものとして流行に合わせられています。 テンプレートの中にどこでもこのタグを使用することができます。
⇒Displays the calendar (defaults to current month/year). Days with posts are styled as such. This tag can be used anywhere within a template.
get_calendarのテンプレートタグ使用方法
<?php get_calendar(); ?>
例
デフォルトの使い方
どんな日付のポストによるカレンダーハイライトも表示します。
⇒Displays calendar highlighting any dates with posts.
<?php get_calendar(); ?>
Displays Weekday Abbrevations
初期で1文字を使用する表示日専用; 1.5、イニシャルがあなたのWordPress Localizationに基礎づけた表示で。
⇒Display days using one-letter initial only; in 1.5, displays initial based on your WordPress Localization.
<?php get_calendar(true); ?>
get_calendarのパラメーター
initial
(boolean) 本当であるなら、初期で1文字を使用することで1日を表示するでしょう; 誤っていると、あなたのローカライズに基づく略語は使用されるでしょう。 例えば:
- false causes “Sunday” to be displayed as “Sun”
- true (default) causes it to be “S”
⇒(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”
関連テンプレートタグ
the_date_xml, the_date, the_time, the_modified_date, the_modified_time, get_the_time, single_month_title, get_calendar, the_weekday , the_weekday_date
関連記事







