Title: IDM Post Date Archive Link
Author: Ignazio Di Maio
Published: <strong>December 17, 2025</strong>
Last modified: December 17, 2025

---

Search plugins

![](https://ps.w.org/idm-post-date-archive-link/assets/icon.svg?rev=3421461)

# IDM Post Date Archive Link

 By [Ignazio Di Maio](https://profiles.wordpress.org/ignaziodimaio/)

[Download](https://downloads.wordpress.org/plugin/idm-post-date-archive-link.1.0.0.zip)

 * [Details](https://test.wordpress.org/plugins/idm-post-date-archive-link/#description)
 * [Reviews](https://test.wordpress.org/plugins/idm-post-date-archive-link/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/idm-post-date-archive-link/#installation)
 * [Development](https://test.wordpress.org/plugins/idm-post-date-archive-link/#developers)

 [Support](https://wordpress.org/support/plugin/idm-post-date-archive-link/)

## Description

IDM Post Date Archive Link is a lightweight plugin that provides a dedicated **block**
and a **shortcode** for dynamically displaying the publication date, or the last
modified date, of a post or page.

Its core function is to offer display flexibility, allowing you to choose between
the **publication date** or the **last modified date**. Furthermore, it enables 
linking the displayed date to different types of date archives.

This tool is perfect for **Full Site Editing (FSE) themes** and for users who require
precise control over the date’s format and link destination within their templates
and content.

### Features

 * **Gutenberg Block**: Fully compatible with the block editor and FSE themes.
 * **Date Selection**: Choose to display the published date (default) or the last
   modified date.
 * **Archive Links**: 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.
 * **Custom Formatting**: Supports date/time formatting using standard PHP formatting
   characters.
 * **CPT Support**: Correctly handles archive links for Custom Post Types by appending
   their slug to the URL.
 * **Shortcode**: Includes the shortcode for backward compatibility and use in widget
   areas or the Classic Editor.

### Usage

#### Block

The block is registered as **“IDM Post Date Archive Link”** under the **Theme** 
category. Once inserted, you can customize it using the available settings in the
Block Inspector sidebar:

 * **Use custom format**: Override the default date format (set in the general settings)
   with a custom one.
 * **Enable date link**: Make the date clickable by linking it to the post or a 
   date archive.
 * **Display last modified date**: If the post has been modified, display the last
   modified date instead of the publication date.
 * **Date prefix**: Custom text prefix to add before the date (e.g., “Published 
   on:”).

The block can be styled using the Styles panel of Block Inspector sidebar. To match
the current theme style, apply the class “_wp-block-post-date_” to the block (same
class of Post Date core block).

#### Shortcode

You can use the `[ipdal]` shortcode in any supported area (shortcode block, widgets,
classic editor), or in a classic theme template with: `<?php echo do_shortcode('[
ipdal]'); ?>`.
 Available attributes are:

 * **`link`** : Make the date clickable by linking it to the post or a date archive.
   
   Accepted Values: `post`, `day`, `month`, `year`, `none` Default: `post`
 * **`modified`** : If the post has been modified, display the last modified date
   instead of the published date.
    Accepted Values: `true`, `false` Default: `false`
 * **`format`** : Override the default date format (set in the general site settings)
   with a custom one.
    Accepted Values: Any [date format string](https://wordpress.org/documentation/article/customize-date-and-time-format/)
   like “`d/m/Y`” or “`timeago`” for relative date format. Default: `default`
 * **`text`** : Custom text prefix to add before the date.
    Accepted Values: Any
   string (e.g., “Published on:”) Default: `''` (none – empty string)

_Example:_

    ```
    [ipdal modified="true" link="month" format="m/d/Y" text="Updated:"]
    ```

( 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 )

The shortcode can be styled with custom CSS by referencing its class: “_idm-post-
date-archive-link\_shortcode_“.

## Screenshots

 * [[
 * Block and shortcode as seen from the block editor
 * [[
 * Block and shortcode as seen from the frontend (block theme)
 * [[
 * Shortcode as seen from the classic editor
 * [[
 * Shortcode as seen from the frontend (classic theme)

## Blocks

This plugin provides 1 block.

 *   IDM Post Date Archive Link Display the publish date (or last modified date)
   for an entry such as a post or page, with format and link options.

## Installation

Install the plugin from the WordPress Plugin Directory, or manually:

 1. Download the plugin ZIP file and upload it via the **Plugins > Add New > Upload
    Plugin** section of your WordPress dashboard. Alternatively, upload the plugin 
    folder via FTP to `/wp-content/plugins/`.
 2. Activate the plugin from the ‘Plugins’ menu.
 3. Search for **“IDM Post Date Archive Link”** block in the editor, or use the `[ipdal]`
    shortcode.

## FAQ

### Is the shortcode also available for block themes?

Yes, the shortcode is available for both block and classic themes, while the block
is only available for block themes, of course.

### Does the block and shortcode work on the “page” post type?

Yes, both block and shortcode work on the “page” post type, but without the ability
to link the date to a date archive (since it is not supported by this post type).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“IDM Post Date Archive Link” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Ignazio Di Maio ](https://profiles.wordpress.org/ignaziodimaio/)

[Translate “IDM Post Date Archive Link” into your language.](https://translate.wordpress.org/projects/wp-plugins/idm-post-date-archive-link)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/idm-post-date-archive-link/),
check out the [SVN repository](https://plugins.svn.wordpress.org/idm-post-date-archive-link/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/idm-post-date-archive-link/)
by [RSS](https://plugins.trac.wordpress.org/log/idm-post-date-archive-link/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **5 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.9 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/idm-post-date-archive-link/)
 * Tags
 * [archive](https://test.wordpress.org/plugins/tags/archive/)[block](https://test.wordpress.org/plugins/tags/block/)
   [date](https://test.wordpress.org/plugins/tags/date/)[link](https://test.wordpress.org/plugins/tags/link/)
   [shortcode](https://test.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://test.wordpress.org/plugins/idm-post-date-archive-link/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/idm-post-date-archive-link/reviews/)

## Contributors

 *   [ Ignazio Di Maio ](https://profiles.wordpress.org/ignaziodimaio/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/idm-post-date-archive-link/)