Title: Old Post Notice
Author: David Allsop
Published: <strong>1 d'octubre de 2024</strong>
Last modified: 3 de febrer de 2026

---

Cerca extensions

![](https://ps.w.org/old-post-notice/assets/banner-772x250.png?rev=3160653)

![](https://ps.w.org/old-post-notice/assets/icon-256x256.png?rev=3160653)

# Old Post Notice

 Per [David Allsop](https://profiles.wordpress.org/medavidallsop/)

[Baixa](https://downloads.wordpress.org/plugin/old-post-notice.2.2.2.zip)

[Previsualitza](https://ca.wordpress.org/plugins/old-post-notice/?preview=1)

 * [Detalls](https://ca.wordpress.org/plugins/old-post-notice/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/old-post-notice/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/old-post-notice/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/old-post-notice/#developers)

 [Suport](https://wordpress.org/support/plugin/old-post-notice/)

## Descripció

**Automatically display a customizable notice on posts older than a set number of
days.**

Keep your readers informed about outdated content with the Old Post Notice WordPress
plugin. Perfect for blogs and websites with extensive archives, it automatically
displays a customizable notice on posts older than a set number of days.

Ideal for managing archived posts, alerting visitors, and improving content engagement.

### ✨ Benefits

 1. **Inform Readers About Outdated Content**
     Use the Old Post Notice plugin to alert
    visitors when a post is older than a set number of days, helping maintain trust
    and improve user experience on blogs and websites.
 2. **Highlight Time-Sensitive Information**
     Perfect for news blogs, tutorials, or
    guides where information can become outdated. The notice can include the post’s
    published or modified date to provide context.
 3. **Manage Archived Posts**
     Access a comprehensive dashboard page that lists all
    posts displaying the old post notice, giving you complete visibility and control
    over your archive content management.
 4. **Improve Blog Engagement**
     Encourage readers to explore newer posts by clearly
    marking older content, increasing page views and engagement on your site.
 5. **Customize Notices for Branding**
     Use default styling or custom CSS to match 
    your blog’s design, ensuring the old post notice fits seamlessly with your site’s
    look and feel.

### 📖 Example Use Case: Jane’s Travel Blog

Jane runs a popular WordPress travel blog with hundreds of posts spanning several
years. She wants to alert readers to outdated content so visitors aren’t misled 
by old information, like hotel prices or travel tips that have changed.

By installing the Old Post Notice plugin, Jane can:

 * Automatically display a customizable old post notice on posts older than a set
   number of days.
 * Include the published or modified date in the notice for context.
 * Style the notice with default colors or use custom CSS to match her blog design.
 * View and manage all posts with notices via the dashboard page and widget, making
   archive post management easy.

This setup improves user experience, boosts blog engagement, and ensures that visitors
are aware of outdated content, all while maintaining a polished, professional look
on her WordPress site.

### ⚡ Features

 * Enable or disable the old post notice.
 * Customize the notice text and styling.
 * Insert the post’s published or modified date into the notice.
 * Set how many days old a post must be for the notice to appear.
 * Display notice based on published or modified dates.
 * Position the notice above or below post content.
 * Use default styling or custom CSS for full control.
 * Set background and text colors for the notice.
 * Add a dashboard page listing all posts with notices.
 * Add a dashboard widget showing selected posts with notices.
 * Replace or append to the default notice on individual posts.
 * Perfect for managing archived posts and keeping content up-to-date.

### 📚 Usage

After installation, access the settings under **Settings > Old Post Notice**. Once
enabled, the notice will appear on old posts according to your configured settings.

### 🧑‍💻 Developer

Created by [David Allsop](https://davidallsop.com). Additional details are available
on the [project page](https://davidallsop.com/work/old-post-notice/).

## Captures

 * [[
 * Automatically display a customizable notice on posts older than a set number 
   of days.
 * [[
 * Post displaying the old post notice.
 * [[
 * Includes several settings to configure the old post notice.
 * [[
 * Adds a page under the Posts menu that lists all posts displaying the old post
   notice.
 * [[
 * Adds a widget to the dashboard homepage that lists all posts displaying the old
   post notice.
 * [[
 * Replace or append to the default notice when editing a post.

## Instal·lació

#### Installation

Please see [this documentation](https://wordpress.org/support/article/managing-plugins/#installing-plugins-1).

#### Updates

Please see [this documentation](https://wordpress.org/documentation/article/manage-plugins/#updating-plugins).

## PMF

### Can I replace or append to the default notice?

Yes. When editing old posts, you can set a notice and choose whether to replace 
the default notice or append to it.

This is a meta box, so it is compatible with both the Block and Classic editors.
On the block editor, the meta box is at the bottom of the page.

### Can I see a list of posts displaying the old post notice?

Yes. You can view posts with the notice by enabling the dashboard page and/or the
dashboard widget.

### Can I set the colors?

Yes. Set the styling option to Default, then choose your preferred background and
text colors using the color settings.

### Can I use my own custom CSS?

Yes. Set the styling option to None, then target the `old-post-notice` class in 
your CSS to apply custom styles.

### Can I use HTML in the notice?

Yes. You can use HTML tags in the notice text, including line breaks, formatting
tags like `<strong>` and `<em>`, and other common HTML elements. The HTML is automatically
sanitized for security, so safe tags like `<p>`, `<br>`, `<strong>`, and `<em>` 
are allowed, while potentially dangerous tags like `<script>` are removed.

### Can I add content before an appended notice?

Yes. Use the `old_post_notice_before_append` filter hook to add content before an
appended notice. For example, if you’re appending links to newer posts to your default
notice, you can add a general heading before the links with this hook.

This will display: [Default notice] + «My Heading» + [Your appended notice].

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Old Post Notice» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

 *   [ David Allsop ](https://profiles.wordpress.org/medavidallsop/)

“Old Post Notice” s’ha traduït a 1 configuració regional. Gràcies als [traductors](https://translate.wordpress.org/projects/wp-plugins/old-post-notice/contributors)
per les seves aportacions.

[Traduïu «Old Post Notice» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/old-post-notice)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/old-post-notice/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/old-post-notice/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/old-post-notice/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/old-post-notice/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 2.2.2 – 2026-01-16

 * Update: Improve enqueue of settings page color picker library so works on WordPress
   playground environment
 * Update: When old post notice disabled, dashboard page/widget info that «these
   pages display a notice» is hidden
 * Update: Meta box naming changes
 * Fix: Add missing space to «These posts display an old post notice because their
   modified date…» string

#### 2.2.1 – 2026-01-13

 * Fix: Save settings can cause an error on PHP 7.4

#### 2.2.0 – 2026-01-12

 * Add: Scaffolding for scoped dependencies
 * Update: Composer script updates
 * Update: Settings option name retrieval improvements
 * Fix: load_plugin_textdomain code no longer needed

#### 2.1.0 – 2025-10-20

 * Add: Old post notice meta box to old posts
 * Add: Replace or append to default notice functionality when editing old posts
 * Add: old_post_notice_before_append filter hook
 * Update: Allow HTML in notice
 * Update: Inherit notice text color on links added in notices
 * Fix: Add catches for get_the_modified_date() and get_the_date() returning false
   in certain circumstances

#### 2.0.0 – 2025-10-16

 * Update: Assets now minified
 * Update: Better AJAX responses for error handling
 * Update: Complete code refactor

#### 1.3.2 – 2024-11-10

 * Update: Contribute information

#### 1.3.1 – 2024-11-04

 * Remove: Sponsor information

#### 1.3.0 – 2024-10-16

 * Add: Dashboard widget posts setting
 * Update: Color variables naming consistency to match option names
 * Update: register_setting sanitize callback

#### 1.2.1 – 2024-10-09

 * Add: Days setting max attribute
 * Update: Dashboard page configure settings button renamed
 * Update: Dashboard widget title changed
 * Update: Information in readme.txt
 * Update: Nag text

#### 1.2.0 – 2024-10-07

 * Add: Dashboard page under the posts menu that displays all posts that are displaying
   the old post notice, disabled by default
 * Update: Dashboard widget now loads a limited amount of data and includes a link
   to view all via the dashboard page
 * Update: Dashboard widget now loads data via AJAX
 * Update: Dashboard widget visibility only to users with edit_posts capability

#### 1.1.0 – 2024-10-04

 * Add: Dashboard widget displaying a selection of posts that are displaying the
   old post notice, disabled by default
 * Update: Public CSS for old post notice is now only enqueued if the old post notice
   setting is enabled and the styling setting is not none

#### 1.0.1 – 2024-10-02

 * Add: Donate link in readme.txt
 * Update: Conditions in uninstall.php
 * Update: FAQs in readme.txt

#### 1.0.0 – 2024-10-01

 * New: Plugin released

## Meta

 *  Versió **2.2.2**
 *  Darrera actualització **fa 4 mesos**
 *  Instal·lacions actives **20+**
 *  Versió del WordPress ** 5.5 o posterior **
 *  Provada fins a **6.9.4**
 *  Versió del PHP ** 7.4 o posterior **
 *  Idiomes
 * [English (UK)](https://en-gb.wordpress.org/plugins/old-post-notice/) i [English (US)](https://wordpress.org/plugins/old-post-notice/).
 *  [Traduïu a la vostra llengua](https://translate.wordpress.org/projects/wp-plugins/old-post-notice)
 *  [Vista avançada](https://ca.wordpress.org/plugins/old-post-notice/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[Your review](https://wordpress.org/support/plugin/old-post-notice/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/old-post-notice/reviews/)

## Col·laboradors

 *   [ David Allsop ](https://profiles.wordpress.org/medavidallsop/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/old-post-notice/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](https://github.com/sponsors/medavidallsop)