WordPress: Template Tags/the date xml:修订间差异
来自站长百科
(新页面: == Description == Displays the date of the post in <tt>YYYY-MM-DD</tt> format (ex: 2004-09-24). This tag must be used within WordPress:The Loop. == Usage == %%% <?php the_date_xml...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays the date of the post in <tt>YYYY-MM-DD</tt> format (ex: 2004-09-24). This tag must be used within [[WordPress:The Loop]]. | Displays the date of the post in <tt>YYYY-MM-DD</tt> format (ex: 2004-09-24). This tag must be used within [[WordPress:The Loop]]. | ||
以<tt>YYYY-MM-DD</tt>格式显示文章的日期(例如:2004-09-24)。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。 | |||
== Usage == | == Usage == | ||
%%% <?php the_date_xml(); ?> %%% | %%% <?php the_date_xml(); ?> %%% | ||
== 用法== | |||
%%% <?php the_日期_xml(); ?> %%% | |||
== Example == | == Example == | ||
第12行: | 第20行: | ||
<div style="border:1px solid blue; width:50%; padding:10px">Date posted: 2005-05-14</div> | <div style="border:1px solid blue; width:50%; padding:10px">Date posted: 2005-05-14</div> | ||
== 例子 == | |||
<p>发表的日期: <?php the_日期_xml(); ?></p> | |||
<div style="border:1px solid blue; width:50%; padding:10px">发表的日期: 2005-05-14</div> | |||
== Parameters == | == Parameters == | ||
This tag does not accept any parameters. | This tag does not accept any parameters. | ||
== 参数 == | |||
这个标签不接受任何参数。 | |||
== Related == | == Related == | ||
第22行: | 第40行: | ||
{{No Param Tag Footer}} | {{No Param Tag Footer}} | ||
==相关的== | |||
{{标签 日期 标签}} | |||
{{没有 Param 标签 页底文字}} |
2008年7月11日 (五) 16:59的版本
Description
描述
Displays the date of the post in YYYY-MM-DD format (ex: 2004-09-24). This tag must be used within WordPress:The Loop.
以YYYY-MM-DD格式显示文章的日期(例如:2004-09-24)。必须在The Loop内使用这个标签。
Usage
%%% <?php the_date_xml(); ?> %%%
用法
%%% <?php the_日期_xml(); ?> %%%
Example
<p>Date posted: <?php the_date_xml(); ?></p>
Date posted: 2005-05-14
例子
<p>发表的日期: <?php the_日期_xml(); ?></p>
发表的日期: 2005-05-14
Parameters
This tag does not accept any parameters.
参数
这个标签不接受任何参数。