站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Template Tags/the modified date
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Xxf3325
(
讨论
|
贡献
)
2008年7月11日 (五) 17:56的版本
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== 描述 == This tag displays the date (and time) a post was last modified. This tag works just like [[WordPress: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 [[WordPress:The Loop]]. If no format parameter is specified, the '''Default date format''' (please note that says Date format) setting from [[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#General|Settings]] > [[WordPress:Settings_General_SubPanel|General]] is used for the display format. 这个标签显示了文章最后一次更改的日期(和时间)。这个标签的运行方式与[[WordPress:Template_Tags/the_modified_time|the_更改的_时间()]]相似,同时也显示了最后更改的时间/日期。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。如果没有指定格式参数,[[WordPress:Administration_Panels|管理]] > [[WordPress:Administration_Panels#General|设置]] > [[WordPress:Settings_General_SubPanel|总的]] 中的'''默认时间格式'''(请注意显示时间格式的设置)设置用来显示时间格式。 If the post or page is not yet modified, the modified date is the same as the creation date. 如果文章或者网页仍然没有更改,更改的日期仍然与编成日期相同。 == Usage == %%% <?php the_modified_date('d'); ?> %%% ==用法 == %%% <?php the_更改的_日期('d'); ?> %%% == Examples == === Default Usage === == 例子 == === 默认用法 === Displays the date the post was last modified, using the '''Default date format''' setting (e.g. F j, Y) from [[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#General|Settings]] > [[WordPress:Settings_General_SubPanel|General]]. 显示文章最后更改的日期,使用[[WordPress:Administration_Panels|管理]] > [[WordPress:Administration_Panels#General|设置]] > [[WordPress:Settings_General_SubPanel|总的]]中的'''默认日期格式''' 设置 (例如 F j, Y)。 <p>Last modified: <?php the_modified_date(); ?></p> <p>最后更改的: <?php the_更改的_日期(); ?></p> <div style="border:1px solid blue; width:50%; padding:10px">Last modified: December 2, 2006</div> <div style="border:1px 固体蓝; width:50%; padding:10px">最后一个更改:2006年12月2日</div> === Date as Month Day, Year === === 按年,月,日排列的日期=== Displays the last modified date in the date format <tt>'F j, Y'</tt> (ex: December 2, 2006). 用日期格式<tt>'F j, Y'</tt> (例如: 2006年12月2日)显示最后更改的日期。 <div>Last modified: <?php the_modified_date('F j, Y'); ?></div> <div>最后一次更改: <?php the_modified_date('F j, Y'); ?></div> <div style="border:1px solid blue; width:50%; padding:10px">Last modified: December 2, 2006</div> <div style="border:1px solid blue; width:50%; padding:10px">最后一次更改:2006年12月2日</div> === 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> <p>更改的: <?php the_更改的_日期('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?></p> <div style="border:1px solid blue; width:50%; padding:10px">Modified: December 2, 2006 at 10:36 pm</div> <div style="border:1px solid blue; width:50%; padding:10px">更改的:2006年12月2日,下午 10:36 </div> == Parameters == == 参数 == ; d : (''string'') The format the date is to display in. Defaults to the date format configured in your WordPress options. See [[WordPress:Formatting Date and Time]]. ; d : (''string'')日期需要显示的格式。默认为WordPress选项中配置的日期格式。请看看[[WordPress:Formatting Date and Time|日期和时间格式]]。 == Related == {{Tag Date Tags}} {{Tag Footer}} == 相关的 == {{标签 日期 标签}} {{标签 页底文字}}
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
模板:标签 日期 标签
(
编辑
)
模板:标签 页底文字
(
编辑
)