Beschrijving
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
- Open the Site Editor to edit a block template.
- Insert a Date block.
- In the block settings, click the “Transform to variation” button and select “Post Date”.
- A new “With Modified Date” panel appears in the settings. Enable the “Show modified date when different from published date” toggle.
- 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.
Schermafbeeldingen

Settings for prefix on published date and modified date 
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 
Frontend rendering for prefix and suffix on modified date only with line break removed
Installatie
Automatic
- Visit Plugins > Add New in the WordPress Admin.
- Search for Post Date Block: Published & Modified.
- Install and activate the Post Date Block: Published & Modified plugin.
You may also install and update via Git Updater using the plugin’s GitHub URL.
Manual
- Download the plugin ZIP either from WordPress.org or from GitHub. Alternatively, if you have a local clone of the repo, run
npm run plugin-zip. (No building of the editor JavaScript is required.) - Visit Plugins > Add New Plugin in the WordPress Admin.
- Click Upload Plugin.
- Select the
post-date-modified.zipfile on your system from step 1 and click Install Now. - Click the Activate Plugin button.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Post Date Block: Published & Modified” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Post Date Block: Published & Modified” is vertaald in 2 localen. Dank voor de vertalers voor hun bijdragen.
Vertaal “Post Date Block: Published & Modified” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.0.0
- Initial release.
