- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ/the modified date」の版間の差分
細 (en:Template Tags/the_modified_date 2008年1月6日 (日) 19:18 HEngel 版/MichaelH, HEngel 著) |
細 (未翻訳テンプレ追加、体裁微調整) |
||
1行目: | 1行目: | ||
− | = | + | {{NeedTrans}} |
+ | <div id="Description"> | ||
+ | == 説明 == | ||
+ | </div> | ||
− | This tag displays the date (and time) a post was last modified. This tag works just like [[ | + | This tag displays the date (and time) a post was last modified. This tag works just like [[テンプレートタグ/the_modified_time|the_modified_time()]], which also displays the time/date a post was last modified. This tag must be used within [[:ja:The Loop|The Loop]]. If no format parameter is specified, the '''Default date format''' (please note that says Date format) setting from [[管理パネル|Administration]] > [[管理パネル#General|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. | If the post or page is not yet modified, the modified date is the same as the creation date. | ||
− | = | + | <div id="Usage"> |
+ | == 使い方 == | ||
+ | </div> | ||
− | + | <?php the_modified_date('d'); ?> | |
− | = | + | <div id="Examples"> |
+ | == 用例 == | ||
+ | </div> | ||
− | === | + | <div id="Default_Usage"> |
+ | == 初期設定での使用 == | ||
+ | </div> | ||
− | Displays the date the post was last modified, using the '''Default date format''' setting (e.g. F j, Y) from [[ | + | Displays the date the post was last modified, using the '''Default date format''' setting (e.g. F j, Y) from [[管理パネル|Administration]] > [[管理パネル#General|Options]] > [[管理パネル/一般設定|General]]. |
− | + | <pre><p>Last modified: <?php the_modified_date(); ?></p></pre> | |
− | <div | + | <div class="example">Last modified: December 2, 2006</div> |
+ | <div id="Date_as_Month_Day.2C_Year"> | ||
=== Date as Month Day, Year === | === Date as Month Day, Year === | ||
+ | </div> | ||
Displays the last modified date in the date format <tt>'F j, Y'</tt> (ex: December 2, 2006). | Displays the last modified date in the date format <tt>'F j, Y'</tt> (ex: December 2, 2006). | ||
− | + | <pre><p>Last modified: <?php the_modified_date('F j, Y'); ?></p></pre> | |
− | <div | + | <div class="example">Last modified: December 2, 2006</div> |
+ | <div id="Date_and_Time"> | ||
=== Date and Time === | === Date and Time === | ||
+ | </div> | ||
Displays the date and time. | Displays the date and time. | ||
− | + | <pre><p>Modified: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?></p></pre> | |
− | <div | + | <div class="example">Modified: December 2, 2006 at 10:36 pm</div> |
− | = | + | <div id="Parameters"> |
+ | == パラメータ == | ||
+ | </div> | ||
; d : (''string'') The format the date is to display in. Defaults to the date format configured in your WordPress options. See [[Formatting Date and Time]]. | ; d : (''string'') The format the date is to display in. Defaults to the date format configured in your WordPress options. See [[Formatting Date and Time]]. | ||
− | = | + | <div id="Related"> |
+ | == 関連 == | ||
+ | </div> | ||
{{Tag Date Tags}} | {{Tag Date Tags}} | ||
45行目: | 62行目: | ||
{{Tag Footer}} | {{Tag Footer}} | ||
− | [[ | + | {{原文|Template Tags/the_modified_date|52815}} |
+ | |||
+ | {{DEFAULTSORT:the_modified_date}} | ||
+ | |||
+ | [[en:Template Tags/the_modified_date]] |
2008年3月29日 (土) 02:55時点における版
このページ「テンプレートタグ/the modified 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.
使い方
<?php the_modified_date('d'); ?>
用例
初期設定での使用
Displays the date the post was last modified, using the Default date format setting (e.g. F j, Y) from Administration > Options > General.
<p>Last modified: <?php the_modified_date(); ?></p>
Date as Month Day, Year
Displays the last modified date in the date format 'F j, Y' (ex: December 2, 2006).
<p>Last modified: <?php the_modified_date('F j, Y'); ?></p>
Date and Time
Displays the date and time.
<p>Modified: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?></p>
パラメータ
- d
- (string) The format the date is to display in. Defaults to the date format configured in your WordPress options. See Formatting Date and Time.
関連
日時に関連するタグ:
get_calendar(),
get_day_link(),
get_month_link(),
get_the_date(),
get_the_time(),
get_year_link(),
single_month_title(),
the_date(),
the_date_xml(),
the_modified_date(),
get_the_modified_date(),
the_modified_time(),
get_the_modified_time(),
the_time()
最新英語版: WordPress Codex » Template Tags/the_modified_date (最新版との差分)