{"id":266343,"date":"2025-12-17T00:18:50","date_gmt":"2025-12-17T00:18:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/post-date-archive-link\/"},"modified":"2025-12-17T00:05:41","modified_gmt":"2025-12-17T00:05:41","slug":"idm-post-date-archive-link","status":"publish","type":"plugin","link":"https:\/\/mk.wordpress.org\/plugins\/idm-post-date-archive-link\/","author":21197949,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.9","requires_php":"7.0","requires_plugins":null,"header_name":"IDM Post Date Archive Link","header_author":"Ignazio Di Maio","header_description":"Display the publication (or modification) date in a block or shortcode, with links to date archives and custom formatting.","assets_banners_color":"","last_updated":"2025-12-17 00:05:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/ignaziodimaio\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":143,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"ignaziodimaio","date":"2025-12-17 00:05:41"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3421461,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3421461,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":3421461,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"idm-post-date-archive-link\/post-date":{"name":"idm-post-date-archive-link\/post-date","title":"IDM Post Date Archive Link","textdomain":"idm-post-date-archive-link","description":"Display the publish date (or last modified date) for an entry such as a post or page, with format and link options.","$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"version":"1.0.0","category":"theme","icon":"calendar-alt","example":{},"attributes":{"align":{"type":"string","default":"full"},"hasCustomFormat":{"type":"boolean","default":false},"customFormat":{"type":"string","default":"Y-m-d"},"manualCustomFormat":{"type":"string","default":""},"hasDateLink":{"type":"boolean","default":false},"dateLink":{"type":"string","default":"post"},"isDateModified":{"type":"boolean","default":false},"customText":{"type":"string","default":""}},"supports":{"html":false,"typography":{"fontSize":true,"lineHeight":true,"textAlign":true},"color":{"background":true,"gradients":true,"link":true,"text":true},"spacing":{"margin":true,"padding":true}},"editorScript":"file:.\/index.js","render":"file:.\/render.php"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3421461,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3421461,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3421461,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3421461,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Block and shortcode as seen from the block editor","2":"Block and shortcode as seen from the frontend (block theme)","3":"Shortcode as seen from the classic editor","4":"Shortcode as seen from the frontend (classic theme)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1445,1220,1358,537,80],"plugin_category":[43],"plugin_contributors":[252375],"plugin_business_model":[],"class_list":["post-266343","plugin","type-plugin","status-publish","hentry","plugin_tags-archive","plugin_tags-block","plugin_tags-date","plugin_tags-link","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-ignaziodimaio","plugin_committers-ignaziodimaio"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/icon.svg?rev=3421461","icon":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/icon.svg?rev=3421461","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/screenshot-1.png?rev=3421461","caption":"Block and shortcode as seen from the block editor"},{"src":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/screenshot-2.png?rev=3421461","caption":"Block and shortcode as seen from the frontend (block theme)"},{"src":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/screenshot-3.png?rev=3421461","caption":"Shortcode as seen from the classic editor"},{"src":"https:\/\/ps.w.org\/idm-post-date-archive-link\/assets\/screenshot-4.png?rev=3421461","caption":"Shortcode as seen from the frontend (classic theme)"}],"raw_content":"<!--section=description-->\n<p>IDM Post Date Archive Link is a lightweight plugin that provides a dedicated <strong>block<\/strong> and a <strong>shortcode<\/strong> for dynamically displaying the publication date, or the last modified date, of a post or page.<\/p>\n\n<p>Its core function is to offer display flexibility, allowing you to choose between the <strong>publication date<\/strong> or the <strong>last modified date<\/strong>. Furthermore, it enables linking the displayed date to different types of date archives.<\/p>\n\n<p>This tool is perfect for <strong>Full Site Editing (FSE) themes<\/strong> and for users who require precise control over the date's format and link destination within their templates and content.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li><strong>Gutenberg Block<\/strong>: Fully compatible with the block editor and FSE themes.<\/li>\n<li><strong>Date Selection<\/strong>: Choose to display the published date (default) or the last modified date.<\/li>\n<li><strong>Archive Links<\/strong>: Option to link the date to the yearly, monthly, or daily archive of the current post, to its permalink, or display it as plain text.<\/li>\n<li><strong>Custom Formatting<\/strong>: Supports date\/time formatting using standard PHP formatting characters.<\/li>\n<li><strong>CPT Support<\/strong>: Correctly handles archive links for Custom Post Types by appending their slug to the URL.<\/li>\n<li><strong>Shortcode<\/strong>: Includes the shortcode for backward compatibility and use in widget areas or the Classic Editor.<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<h4>Block<\/h4>\n\n<p>The block is registered as <strong>\"IDM Post Date Archive Link\"<\/strong> under the <strong>Theme<\/strong> category. Once inserted, you can customize it using the available settings in the Block Inspector sidebar:<\/p>\n\n<ul>\n<li><strong>Use custom format<\/strong>: Override the default date format (set in the general settings) with a custom one.<\/li>\n<li><strong>Enable date link<\/strong>: Make the date clickable by linking it to the post or a date archive.<\/li>\n<li><strong>Display last modified date<\/strong>: If the post has been modified, display the last modified date instead of the publication date.<\/li>\n<li><strong>Date prefix<\/strong>: Custom text prefix to add before the date (e.g., \"Published on:\").<\/li>\n<\/ul>\n\n<p>The block can be styled using the Styles panel of Block Inspector sidebar. To match the current theme style, apply the class \"<em>wp-block-post-date<\/em>\" to the block (same class of Post Date core block).<\/p>\n\n<h4>Shortcode<\/h4>\n\n<p>You can use the <code>[ipdal]<\/code> shortcode in any supported area (shortcode block, widgets, classic editor), or in a classic theme template with: <code>&lt;?php echo do_shortcode('[ipdal]'); ?&gt;<\/code>. \nAvailable attributes are:<\/p>\n\n<ul>\n<li><p><strong><code>link<\/code><\/strong> : Make the date clickable by linking it to the post or a date archive.\nAccepted Values: <code>post<\/code>, <code>day<\/code>, <code>month<\/code>, <code>year<\/code>, <code>none<\/code>\nDefault: <code>post<\/code><\/p><\/li>\n<li><p><strong><code>modified<\/code><\/strong> : If the post has been modified, display the last modified date instead of the published date.\nAccepted Values: <code>true<\/code>, <code>false<\/code>\nDefault: <code>false<\/code><\/p><\/li>\n<li><p><strong><code>format<\/code><\/strong> : Override the default date format (set in the general site settings) with a custom one.\nAccepted Values: Any <a href=\"https:\/\/wordpress.org\/documentation\/article\/customize-date-and-time-format\/\">date format string<\/a> like \"<code>d\/m\/Y<\/code>\" or \"<code>timeago<\/code>\" for relative date format.\nDefault: <code>default<\/code><\/p><\/li>\n<li><p><strong><code>text<\/code><\/strong> : Custom text prefix to add before the date.\nAccepted Values: Any string (e.g., \"Published on:\")\nDefault: <code>''<\/code> (none - empty string)<\/p><\/li>\n<\/ul>\n\n<p><em>Example:<\/em><\/p>\n\n<pre><code>[ipdal modified=\"true\" link=\"month\" format=\"m\/d\/Y\" text=\"Updated:\"]\n<\/code><\/pre>\n\n<p>( this sample will displays the last modified date linked to the monthly archive, with the format month\/day\/year, and \"Updated:\" as custom text prefix )<\/p>\n\n<p>The shortcode can be styled with custom CSS by referencing its class: \"<em>idm-post-date-archive-link_shortcode<\/em>\".<\/p>\n\n<!--section=installation-->\n<p>Install the plugin from the WordPress Plugin Directory, or manually:<\/p>\n\n<ol>\n<li><p>Download the plugin ZIP file and upload it via the <strong>Plugins &gt; Add New &gt; Upload Plugin<\/strong> section of your WordPress dashboard. Alternatively, upload the plugin folder via FTP to <code>\/wp-content\/plugins\/<\/code>.<\/p><\/li>\n<li><p>Activate the plugin from the 'Plugins' menu.<\/p><\/li>\n<li><p>Search for <strong>\"IDM Post Date Archive Link\"<\/strong> block in the editor, or use the <code>[ipdal]<\/code> shortcode.<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='is%20the%20shortcode%20also%20available%20for%20block%20themes%3F'><h3>Is the shortcode also available for block themes?<\/h3><\/dt>\n<dd><p>Yes, the shortcode is available for both block and classic themes, while the block is only available for block themes, of course.<\/p><\/dd>\n<dt id='does%20the%20block%20and%20shortcode%20work%20on%20the%20%E2%80%9Cpage%E2%80%9D%20post%20type%3F'><h3>Does the block and shortcode work on the \u201cpage\u201d post type?<\/h3><\/dt>\n<dd><p>Yes, both block and shortcode work on the \u201cpage\u201d post type, but without the ability to link the date to a date archive (since it is not supported by this post type).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display the publication (or modification) date in a block or shortcode, with links to date archives and custom formatting.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/266343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=266343"}],"author":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ignaziodimaio"}],"wp:attachment":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=266343"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=266343"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=266343"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=266343"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=266343"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=266343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}