Title: Post Date Block: Published &amp; Modified
Author: Weston Ruter
Published: <strong>2026 年 1 月 24 日</strong>
Last modified: 2026 年 5 月 19 日

---

搜索插件

![](https://ps.w.org/post-date-modified/assets/banner-772x250.png?rev=3446264)

![](https://ps.w.org/post-date-modified/assets/icon.svg?rev=3446260)

# Post Date Block: Published & Modified

 作者：[Weston Ruter](https://profiles.wordpress.org/westonruter/)

[下载](https://downloads.wordpress.org/plugin/post-date-modified.1.0.0.zip)

[实时预览](https://cn.wordpress.org/plugins/post-date-modified/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/post-date-modified/#description)
 * [评价](https://cn.wordpress.org/plugins/post-date-modified/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/post-date-modified/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/post-date-modified/#developers)

 [支持](https://wordpress.org/support/plugin/post-date-modified/)

## 描述

This plugin extends the core Post Date block variation, specifically the “Post Date”
variation of the Date block. It appends the modified date to the block whenever 
it differs from the published date (when rendered in the provided date format). 
You can configure prefixes and suffixes for both dates, and you can display the 
modified date on a separate line.

For a full writeup of this plugin, see my [blog post](https://weston.ruter.net/2026/01/19/post-date-block-published-modified/).

This is a prototype or stopgap for [gutenberg#53099](https://github.com/WordPress/gutenberg/issues/53099)(
Post date: It is not clear that “display modified date” replaces the publishing 
date). See also [gutenberg#61920](https://github.com/WordPress/gutenberg/pull/61920)(
Add prefix / suffix to Post Date block). What eventually lands in core will hopefully
leverage “[shortblocks](https://github.com/WordPress/gutenberg/issues/73929)” so
that the conditional prefixes and suffixes needn’t be provided in a block settings
panel.

#### Usage

 1. Open the Site Editor to edit a block template.
 2. Insert a Date block.
 3. In the block settings, click the “Transform to variation” button and select “Post
    Date”.
 4. A new “With Modified Date” panel appears in the settings. Enable the “Show modified
    date when different from published date” toggle.
 5. Configure the prefixes and suffixes for the published date and modified date when
    the two differ for the selected date format; optionally enable the toggle to show
    the modified date on a separate line.

**Note:** There is currently no preview in the editor. To see the changes, save 
the block template and navigate on the frontend to a post that has been modified
at least a day after publishing.

## 屏幕截图

[⌊Settings for prefix on published date and modified date⌉⌊Settings for prefix on
published date and modified date⌉[

Settings for prefix on published date and modified date

[⌊Frontend rendering of prefix on published date and modified date (when they differ)⌉⌊
Frontend rendering of prefix on published date and modified date (when they differ
)⌉[

Frontend rendering of prefix on published date and modified date (when they differ)

[⌊Settings for prefix and suffix on modified date only with line break removed⌉⌊
Settings for prefix and suffix on modified date only with line break removed⌉[

Settings for prefix and suffix on modified date only with line break removed

[⌊Frontend rendering for prefix and suffix on modified date only with line break
removed⌉⌊Frontend rendering for prefix and suffix on modified date only with line
break removed⌉[

Frontend rendering for prefix and suffix on modified date only with line break removed

## 安装

#### Automatic

 1. Visit **Plugins > Add New** in the WordPress Admin.
 2. Search for **Post Date Block: Published & Modified**.
 3. Install and activate the **Post Date Block: Published & Modified** plugin.

You may also install and update via [Git Updater](https://git-updater.com/) using
the [plugin’s GitHub URL](https://github.com/westonruter/post-date-modified).

#### Manual

 1. Download the plugin ZIP either [from WordPress.org](https://downloads.wordpress.org/plugin/post-date-modified.zip)
    or [from GitHub](https://github.com/westonruter/post-date-modified/archive/refs/heads/main.zip).
    Alternatively, if you have a local clone of the repo, run `npm run plugin-zip`.(
    No building of the editor JavaScript is required.)
 2. Visit **Plugins > Add New Plugin** in the WordPress Admin.
 3. Click **Upload Plugin**.
 4. Select the `post-date-modified.zip` file on your system from step 1 and click **
    Install Now**.
 5. Click the **Activate Plugin** button.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Post Date Block: Published & Modified」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

「Post Date Block: Published & Modified」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/post-date-modified/contributors)
为本插件所做的贡献。

[帮助将「Post Date Block: Published & Modified」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-date-modified)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/post-date-modified/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/post-date-modified/)，或通过[RSS](https://plugins.trac.wordpress.org/log/post-date-modified/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/post-date-modified/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/westonruter/post-date-modified)

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.9 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-date-modified/) 、 [French (France)](https://fr.wordpress.org/plugins/post-date-modified/)
   和 [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/post-date-modified/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/post-date-modified)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[Block Templates](https://cn.wordpress.org/plugins/tags/block-templates/)
   [date](https://cn.wordpress.org/plugins/tags/date/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
   [site editor](https://cn.wordpress.org/plugins/tags/site-editor/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-date-modified/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/post-date-modified/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/post-date-modified/reviews/)

## 贡献者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/post-date-modified/)