{"id":277252,"date":"2026-01-24T19:29:29","date_gmt":"2026-01-24T19:29:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/post-date-block-published-modified\/"},"modified":"2026-01-24T20:00:49","modified_gmt":"2026-01-24T20:00:49","slug":"post-date-modified","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/post-date-modified\/","author":186678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"Post Date Block: Published & Modified","header_author":"Weston Ruter","header_description":"Appends the modified date to the Post Date block when different from the published date. See <a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/53099\">gutenberg#53099<\/a>.","assets_banners_color":"000000","last_updated":"2026-01-24 20:00:49","external_support_url":"","external_repository_url":"https:\/\/github.com\/westonruter\/post-date-modified","donate_link":"","header_plugin_uri":"https:\/\/github.com\/westonruter\/post-date-modified","header_author_uri":"https:\/\/weston.ruter.net\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":213,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"westonruter","date":"2026-01-24 20:00:49"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3446264,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3446264,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":3446260,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3446264,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3446264,"resolution":"772x250","location":"assets","locale":""},"banner.svg":{"filename":"banner.svg","revision":3446260,"resolution":false,"location":"assets","locale":false}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3446393,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/wp-admin\\\/site-editor.php?p=%2Fwp_template%2Ftwentytwentyfive%2F%2Fhome&canvas=edit\",\"plugins\":[\"post-date-modified\"],\"login\":true,\"preferredVersions\":{\"php\":\"8.1\",\"wp\":\"latest\"},\"steps\":[{\"step\":\"setSiteOptions\",\"options\":{\"blogname\":\"Testing Post Date Block: Published & Modified\"}},{\"step\":\"installTheme\",\"themeData\":{\"resource\":\"wordpress.org\\\/themes\",\"slug\":\"twentytwentyfive\"},\"options\":{\"activate\":true}},{\"step\":\"wp-cli\",\"command\":\"wp post update 1 --post_title='Recently Modified Post' --post_content=\\\"<!-- wp:paragraph --><p>This post was just modified. Assuming you are looking at the homepage template right now, select the Date block below and modify its settings so that the modified date is displayed when it differs from the published date. Save the template, and then navigate to the homepage to see how the Date block is updated to display the published date and the modified date both. Configure the prefix and suffix settings for the published and modified dates to disambiguate.<\\\/p><!-- \\\/wp:paragraph -->\\\"\"},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"post-date-modified\"},\"options\":{\"activate\":true}}]}"}},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3446260,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3446260,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3446260,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3446260,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Settings for prefix on published date and modified date","2":"Frontend rendering of prefix on published date and modified date (when they differ)","3":"Settings for prefix and suffix on modified date only with line break removed","4":"Frontend rendering for prefix and suffix on modified date only with line break removed"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1220,173971,1358,148076,139732],"plugin_category":[],"plugin_contributors":[78438],"plugin_business_model":[216239],"class_list":["post-277252","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-block-templates","plugin_tags-date","plugin_tags-gutenberg","plugin_tags-site-editor","plugin_contributors-westonruter","plugin_business_model-community","plugin_committers-westonruter"],"banners":{"banner":"https:\/\/ps.w.org\/post-date-modified\/assets\/banner-772x250.png?rev=3446264","banner_2x":"https:\/\/ps.w.org\/post-date-modified\/assets\/banner-1544x500.png?rev=3446264","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/post-date-modified\/assets\/icon.svg?rev=3446260","icon":"https:\/\/ps.w.org\/post-date-modified\/assets\/icon.svg?rev=3446260","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/post-date-modified\/assets\/screenshot-1.png?rev=3446260","caption":"Settings for prefix on published date and modified date"},{"src":"https:\/\/ps.w.org\/post-date-modified\/assets\/screenshot-2.png?rev=3446260","caption":"Frontend rendering of prefix on published date and modified date (when they differ)"},{"src":"https:\/\/ps.w.org\/post-date-modified\/assets\/screenshot-3.png?rev=3446260","caption":"Settings for prefix and suffix on modified date only with line break removed"},{"src":"https:\/\/ps.w.org\/post-date-modified\/assets\/screenshot-4.png?rev=3446260","caption":"Frontend rendering for prefix and suffix on modified date only with line break removed"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>For a full writeup of this plugin, see my <a href=\"https:\/\/weston.ruter.net\/2026\/01\/19\/post-date-block-published-modified\/\">blog post<\/a>.<\/p>\n\n<p>This is a prototype or stopgap for <a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/53099\">gutenberg#53099<\/a> (Post date: It is not clear that \"display modified date\" replaces the publishing date). See also <a href=\"https:\/\/github.com\/WordPress\/gutenberg\/pull\/61920\">gutenberg#61920<\/a> (Add prefix \/ suffix to Post Date block). What eventually lands in core will hopefully leverage \u201c<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/73929\">shortblocks<\/a>\u201d so that the conditional prefixes and suffixes needn't be provided in a block settings panel.<\/p>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>Open the Site Editor to edit a block template.<\/li>\n<li>Insert a Date block.<\/li>\n<li>In the block settings, click the \u201cTransform to variation\u201d button and select \u201cPost Date\u201d.<\/li>\n<li>A new \u201cWith Modified Date\u201d panel appears in the settings. Enable the \u201cShow modified date when different from published date\u201d toggle.<\/li>\n<li>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.<\/li>\n<\/ol>\n\n<p><strong>Note:<\/strong> 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.<\/p>\n\n<!--section=installation-->\n<h4>Automatic<\/h4>\n\n<ol>\n<li>Visit <strong>Plugins &gt; Add New<\/strong> in the WordPress Admin.<\/li>\n<li>Search for <strong>Post Date Block: Published &amp; Modified<\/strong>.<\/li>\n<li>Install and activate the <strong>Post Date Block: Published &amp; Modified<\/strong> plugin.<\/li>\n<\/ol>\n\n<p>You may also install and update via <a href=\"https:\/\/git-updater.com\/\">Git Updater<\/a> using the <a href=\"https:\/\/github.com\/westonruter\/post-date-modified\">plugin's GitHub URL<\/a>.<\/p>\n\n<h4>Manual<\/h4>\n\n<ol>\n<li>Download the plugin ZIP either <a href=\"https:\/\/downloads.wordpress.org\/plugin\/post-date-modified.zip\">from WordPress.org<\/a> or <a href=\"https:\/\/github.com\/westonruter\/post-date-modified\/archive\/refs\/heads\/main.zip\">from GitHub<\/a>. Alternatively, if you have a local clone of the repo, run <code>npm run plugin-zip<\/code>. (No building of the editor JavaScript is required.)<\/li>\n<li>Visit <strong>Plugins &gt; Add New Plugin<\/strong> in the WordPress Admin.<\/li>\n<li>Click <strong>Upload Plugin<\/strong>.<\/li>\n<li>Select the <code>post-date-modified.zip<\/code> file on your system from step 1 and click <strong>Install Now<\/strong>.<\/li>\n<li>Click the <strong>Activate Plugin<\/strong> button.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Appends the modified date to the Post Date block when different from the published date.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/277252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=277252"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/westonruter"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=277252"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=277252"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=277252"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=277252"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=277252"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=277252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}