=== Last Updated Badge ===
Contributors: snehalpancholi
Tags: last updated, freshness, post date, badge, shortcode
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show a "Last updated: DATE" badge on posts when the modified date is later than the publish date.

== Description ==

Last Updated Badge automatically shows readers when your content was last refreshed. It only displays the badge if the post was modified at least N days after it was published (configurable), so newly-published posts don't show a stale-looking badge. Three visual styles — subtle, prominent, and inline — plus a [last_updated] shortcode for manual placement.

**Features**

* Only shows badge when post is genuinely updated (configurable minimum-days threshold)
* Three badge styles: subtle, prominent (highlighted box), inline
* Configurable date format (any PHP date string)
* Configurable badge text template (e.g. "Refreshed on %s")
* [last_updated] shortcode with optional post_id and style attributes
* Placement: before content, after content, or shortcode-only
* Multi-post-type support
* Dark mode aware CSS

== Installation ==

1. Upload the `last-updated-badge` folder to `/wp-content/plugins/`
2. Activate via **Plugins > Installed Plugins**
3. Go to **Settings > Last Updated Badge** to configure

== Frequently Asked Questions ==

= Will it show on posts I just published? =
No. The minimum-days setting (default: 1) means the badge only appears if the modified date is at least that many days after the publish date.

= Can I style the badge myself? =
Yes. The plugin adds class `lub-badge` and `lub-badge--subtle`, `lub-badge--prominent`, or `lub-badge--inline`. Target these in your theme CSS.

== Changelog ==

= 1.0.0 =
* Initial release
