• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

「テンプレートタグ/the modified date」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(en:Template Tags/the_modified_date 2008年1月6日 (日) 19:18 HEngel 版/MichaelH, HEngel 著)
 
(未翻訳テンプレ追加、体裁微調整)
1行目: 1行目:
== Description ==
+
{{NeedTrans}}
 +
<div id="Description">
 +
== 説明 ==
 +
</div>
  
This tag displays the date (and time) a post was last modified.  This tag works just like [[Template_Tags/the_modified_time|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_Panels|Administration]] > [[Administration_Panels#General|Options]] > [[General_Options_SubPanel|General]] is used for the display format.
+
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.
  
== Usage ==
+
<div id="Usage">
 +
== 使い方 ==
 +
</div>
  
%%% <?php the_modified_date('d'); ?> %%%
+
<?php the_modified_date('d'); ?>
  
== Examples ==
+
<div id="Examples">
 +
== 用例 ==
 +
</div>
  
=== Default Usage ===
+
<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 [[Administration_Panels|Administration]] > [[Administration_Panels#General|Options]] > [[General_Options_SubPanel|General]].
+
Displays the date the post was last modified, using the '''Default date format''' setting (e.g. F j, Y) from [[管理パネル|Administration]] > [[管理パネル#General|Options]] > [[管理パネル/一般設定|General]].
  
&lt;p&gt;Last modified: <?php the_modified_date(); ?>&lt;/p&gt;
+
<pre><p>Last modified: <?php the_modified_date(); ?></p></pre>
  
<div style="border:1px solid blue; width:50%; padding:10px">Last modified: December 2, 2006</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).
  
&lt;div&gt;Last modified: <?php the_modified_date('F j, Y'); ?>&lt;/div&gt;
+
<pre><p>Last modified: <?php the_modified_date('F j, Y'); ?></p></pre>
  
<div style="border:1px solid blue; width:50%; padding:10px">Last modified: December 2, 2006</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.
  
&lt;p&gt;Modified: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?>&lt;/p&gt;
+
<pre><p>Modified: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?></p></pre>
  
<div style="border:1px solid blue; width:50%; padding:10px">Modified: December 2, 2006 at 10:36 pm</div>
+
<div class="example">Modified: December 2, 2006 at 10:36 pm</div>
  
== Parameters ==
+
<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]].
  
== Related ==
+
<div id="Related">
 +
== 関連 ==
 +
</div>
  
 
{{Tag Date Tags}}
 
{{Tag Date Tags}}
45行目: 62行目:
 
{{Tag Footer}}
 
{{Tag Footer}}
  
[[Category:New page created]]
+
{{原文|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>
Last modified: December 2, 2006

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>
Last modified: December 2, 2006

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>
Modified: December 2, 2006 at 10:36 pm

パラメータ

(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最新版との差分