カレンダーを表示する<?php get_calendar(); ?>
2007-12-05
カレンダーを表示するテンプレートタグが
<?php get_calendar(); ?>
です。
カレンダーを挿入したい場所に、そのまま記述します。
ソースは次の通りになります。
<table id="wp-calendar" summary="カレンダー">
<caption>2007年 12月</caption>
<thead>
<tr>
<th abbr="日曜日" scope="col" title="日曜日"><span style="color: #DB0000">日</span></th>
<th abbr="月曜日" scope="col" title="月曜日">月</th>
<th abbr="火曜日" scope="col" title="火曜日">火</th>
<th abbr="水曜日" scope="col" title="水曜日">水</th>
~以下略~
通常は当月のカレンダーが表示されますが、投稿記事のシングルページでは、投稿記事の月のカレンダーが表示されます。
また、曜日の表示文字を指定するパラメータも挿入できますが、日本語版WordPress MEでは動作しません。
-スポンサーサイト-
トラックバック URL :


コメントはございません。