Digital Sovereignty for everyone

Archiving content and settings

The plugin registers an archive post status (labelled Archived) for every public post type except attachments, bbPress forums, topics and replies, and post types that manage their own statuses. See the Developer reference for how to change that list.

Archiving a post

  • Status dropdown: Archived appears in the publish box, Quick Edit and the block editor sidebar, through the bundled WP Statuses library.
  • Row action: published posts get an Archive link in the admin list table for users who can edit the post and have publish_posts. Archived posts lose their Edit and Trash row actions there.
  • Archive Date: a side meta box on the edit screen sets a date. An hourly cron job archives published posts whose date is before today, five per run. The list table shows an Archive Date column (Never when unset).
  • Archiving a post with no Archive Date records the current time as its date. Republishing an archived post clears the date, so it won’t be re-archived by the cron job.

Settings

The settings are in an Archiving Settings section under Settings → Reading:

  • Can Archived Posts be read publicly: Yes keeps archived posts readable by anyone at their own URLs while leaving them out of listings. No makes the status non-public, so only users with read_private_posts can view archived posts.
  • Title Label: optional text appended to the title of an archived post on its own page, e.g. “My post – Archived”.
  • Archive Message: HTML shown above the content of an archived post on its own page.

On activation a one-off cron job sets the defaults, if no settings exist yet: publicly readable, with the message “This content has been archived. It may no longer be relevant”.

On the archived post’s own page

  • The Archive Message is added before the content, in the page body only (not in feeds, excerpts or head meta), for both classic and block themes.
  • A canonical link tag is output, since WordPress core only adds one for published posts.
  • When archived posts are publicly readable they’re included in the core XML sitemaps.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.