the_weekday – WordPress*リファレンス

この関数は非推奨されています。それは新しい関数に置き換えられていますかは、もはやサポートされており、将来のバージョンから削除されることを意味することがあります。この関数を使用するすべてのコードが存在する場合は、交換を使用するように変換する必要があります。

原文(翻訳元): ⇒This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists.

曜日(例えば、金曜日)を表示します。 Loopの中でこのタグを使用しなければなりません。

原文(翻訳元): ⇒Displays the day of the week (e.g. Friday). This tag must be used within The Loop.

the_weekdayのテンプレートタグ使用方法

<?php the_weekday() ?>

<p>This was posted on a <?php the_weekday() ?>.</p>

the_weekdayのパラメーター

このタグはどんなパラメタも受け入れません。

原文(翻訳元): ⇒This tag does not accept any parameters.

Replaced With

このタグを取り替えるには、’l'と共に書式の記号列としてthe_time()を費やしてください:

原文(翻訳元): ⇒To replace this tag, use the_time() with ‘l’ as the format string:

<?php the_time('l'); ?>

日時の書式の記号列使用の情報に関してFormatting DateとTimeを見てください。

原文(翻訳元): ⇒See Formatting Date and Time for information on date and time format string use.

関連テンプレートタグ

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


HOME » テンプレートタグ » 日付・時間タグ » the_weekday – WordPress*リファレンス