建站教程

建站教程

Products

当前位置:首页 > 建站教程 >

WordPress 官方发布了 6.0 的计划(WordPress文章发表日期标签:the_date)

GG网络技术分享 2025-03-18 16:13 1


WordPress 官方发布了 6.0 的计划

WordPress 6.0 是 2022 年 WordPress 的第二个主要发布版本,这个版本会改进和迭代之前版本推出的定制工具,其实还是古腾堡编辑器,具体主要包括编辑器功能细化、模式功能扩展、导航区块细化、块探索和设计工具。

和 5.9 版本一样的发布节奏,在候选发布版之前有较长的时间 alpha 期和较短的 beta 期,下面是 WordPress 官方发布的一个大致计划:

里程碑

日期

Alpha (trunk open for 6.0)

2022年1月4日

Feature freeze/Bug Fixes

冻结新增功能,开始修复bug

2022年3月29日

Beta 1

2022年4月12日

Beta 2

2022年4月19日

Beta 3

2022年4月26日

候选发布版 1

2022年5月3日

候选发布版 2

2022年5月10日

候选发布版 3

2022年5月17日

试运行

2022年5月23日

WordPress 6.0 正式发布

2022年5月24日

WordPress 5.9 发布,全站编辑来了,感觉 5.9 没什么更新,6.0 还是外孙打灯笼照旧。

WordPress文章发表日期标签:the_date

WordPress模板标签the_date输出当前文章的发表日期,需要用在The Loop主循环中。

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

函数参数

$d

字符串值,默认值:WordPress选项中设置的值

日期的格式

$before

字符串值,默认为空

日期前输出的文本

$after

字符串值,默认为空

日期后输出的文本

$echo

布尔值,默认值:True

输出日期还是只返回相应的值,默认输出。

函数使用示例

<?php the_date(\\\'Y-m-d\\\', \\\'<h3>\\\', \\\'</h3>\\\'); ?>

扩展阅读

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

相关函数:

  • get_the_date()
  • get_the_time()
  • the_modified_date()
  • get_the_modified_date()
  • the_modified_time()
  • get_the_modified_time()
  • the_time()

标签:

提交需求或反馈

Demand feedback