the_modified_date – WordPress*リファレンス
このタグはポストが最後に変更された日付(そして、時間)を表示します。 このタグはまさしくthe_modified_time()のように動作します。(また、それは、ポストが最後に変更された時間/日付を表します)。 Loopの中でこのタグを使用しなければなりません。 形式パラメーターが全く指定されないなら、Defaultは形式((管理画面からDate形式) 設定を言う注意を喜ばせます>)の日付を入れます。 オプション> 一般はシステム出力表示形式に使用されます。
ポストかページがまだ変更されていないなら、変更された期日は作成日付と同じです。
⇒This tag displays the date (and time) a post was last modified. This tag works just like the_modified_time(), which also displays the time/date a post was last modified. This tag must be used within The Loop. If no format parameter is specified, the Default date format (please note that says Date format) setting from Administration > Options > General is used for the display format.
If the post or page is not yet modified, the modified date is the same as the creation date.
the_modified_dateのテンプレートタグ使用方法
< ?php the_modified_date('d'); ?>
例
デフォルトの使い方
管理画面 > オプション > 一般設定からDefault日付の形式設定(例えば、F j、Y)を使用して、ポストが最後に変更された日付を表示します
⇒Displays the date the post was last modified, using the Default date format setting (e.g. F j, Y) from Administration > Options > General.
Last modified: < ?php the_modified_date(); ?>
Last modified: December 2, 2006
Date as Month Day, Year
日付の最後の変更された期日の表示は’F j、Y’(例えば、2006年12月2日)をフォーマットします。
⇒Displays the last modified date in the date format ‘F j, Y’ (ex: December 2, 2006).
Last modified: < ?php the_modified_date('F j, Y'); ?>
Last modified: December 2, 2006
Date and Time
日時を表示します。
⇒Displays the date and time.
Modified: < ?php the_modified_date('F j, Y'); ?> at < ?php the_modified_date('g:i a'); ?>
Modified: December 2, 2006 at 10:36 pm
Date and Time
日時を表示します。
⇒
Posted: < ?php the_time('F j, Y'); ?> at < ?php the_time('g:i a'); ?
Posted: July 17, 2007 at 7:19 am
the_modified_dateのパラメーター
d
(string) 日付が表示することになっている形式。 日付の形式へのデフォルトはあなたのWordPressでオプションを構成しました。 形式日時に遭遇してください。
⇒(string) The format the date is to display in. Defaults to the date format configured in your WordPress options. See Formatting Date and Time.
関連テンプレートタグ
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
関連記事







