the_weekday_date – 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 weekday of the current post (e.g. Friday) only if it is different from the weekday of the previous post. This tag must be used within The Loop.

置き換え

1から1の対応が別のため、代わりに、トリガおよびthe_time()ランク’l'は、フォーマット文字列として(小文字l )のは、このPHPコードのブロックに示すようにthe_date()を使用するタグをテンプレートにすることです:

原文(翻訳元): ⇒There is one-to one correspondence with another template tag, so to replace, use the_date() as a trigger and the_time() with ‘l’ (lowercase letter L) as the format string, as shown in this PHP code block:

<?php if(the_date('','','', FALSE)) the_time('l'); ?>

書式を設定する日付と日付と時刻の書式指定文字列の使用の詳細については、時間を参照してください。

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

タグ使用方法

<?php the_weekday_date('before', 'after') ?>

Posts from <?php the_weekday_date('<strong>', '</strong>'): ?>

the_weekday_dateのパラメーター

before

テキストは、タグの出力の前に置きます。デフォルトはありません。

原文(翻訳元): ⇒ (string) Text placed before the tag’s output. There is no default.

after

テキストは、タグの出力の前に置きます。デフォルトはありません。

原文(翻訳元): ⇒ (string) Text placed after the tag’s output. There is no default.

関連テンプレートタグ

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_date – WordPress*リファレンス