首页 WordPress函数 WordPress文章修改日期标签:the_modified_date
正文 评论

WordPress文章修改日期标签:the_modified_date

WordPress模板标签the_modified_date输出文章最后修改日期,需要用在The Loop主循环里。

the_modified_date( string $d = \'\', string $before = \'\', string $after = \'\', boolean $echo = true )

函数参数

$d

字符串值,默认值:WordPress后台选项中设置的日期格式

指定日期的格式

$before

字符串值,默认为空

日期前输出的内容

$after

字符串值,默认为空

日期后面输出的内容

$echo

布尔值,默认值:true

是否输出日期,还是只返回值,默认输出。

函数使用示例

<p>文章最后修改日期: <?php the_modified_date(); ?></p>

扩展阅读

the_modified_date()函数位于:wp-includes/general-template.php

相关函数:

  • get_the_date()
  • get_the_time()
  • the_date()
  • get_the_modified_date()
  • the_modified_time()
  • get_the_modified_time()
  • the_time()
-=||=-收藏赞 (0)
更多主题
v1.0.0
小程序收录免费WordPress主题:XCX主题
¥ 0 关注:22,481
详情
单栏极简文艺WordPress博客主题:Diaspora主题
¥ 0 关注:22,055
详情
简约黑白WordPress个人博客主题:Personal主题
¥ 0 关注:21,760
详情
功能丰富切轻量的WordPress虚拟资源主题:Rizhuti主题
¥ 599 关注:19,807
详情
v1.0.0
一款简约单栏的免费WordPress博客主题:itheme主题
¥ 0 关注:19,737
详情
v3.4.0
适用自媒体资讯的免费WordPress主题:Autumn主题
¥ 0 关注:16,836
详情
回复
暂无评论

不要再留垃圾评论了,主题君整理资源不容易,留几句鼓励的话吧。