plugin-icon

Post Date Block: Published & Modified

제작자: Weston Ruter·
Appends the modified date to the Post Date block when different from the published date.
버전
1.0.0
최근 업데이트일
May 19, 2026
Post Date Block: Published & 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.

This is a prototype or stopgap for gutenberg#53099 (Post date: It is not clear that “display modified date” replaces the publishing date). See also gutenberg#61920 (Add prefix / suffix to Post Date block). What eventually lands in core will hopefully leverage “shortblocks” 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.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 7.0
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.