=== AddonLogic New Badge on Recent Pages ===
Contributors: snehalpancholi
Tags: new badge, recent posts, navigation, post badge, label
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically display a configurable "New" badge on posts and navigation menu items published within a chosen number of days.

== Description ==

AddonLogic New Badge on Recent Pages adds an eye-catching badge to newly published content so visitors immediately know what's fresh on your site — with zero template changes required.

**Features:**
* Configurable threshold (1–365 days)
* Badge on post/page listing titles, single post titles, and/or nav menu items
* Per-post-type control (posts, pages, any public CPT)
* Fully customisable badge text, background colour, and text colour
* Accessible `aria-label` on the badge element
* `[new_badge]` shortcode for manual placement inside the loop
* No jQuery — pure CSS badge with minimal footprint

== Installation ==

1. Upload the `new-badge-recent-pages` folder to `/wp-content/plugins/`.
2. Activate via **Plugins > Installed Plugins**.
3. Go to **Settings > New Badge** to configure the threshold, colours, and display locations.

== Frequently Asked Questions ==

= Will the badge appear in my site's `<title>` tag? =
No. The filter targets only `the_title()` when called inside the WordPress loop, so browser title and SEO meta tags are unaffected.

= Can I style the badge myself? =
Yes. Target `.nbr-badge` in your theme CSS and override any property. The inline `style=""` attribute sets colours from settings so use `!important` if needed.

= Does it work with page builders? =
It works wherever the theme calls `the_title()` inside the post loop. Page builder template-overrides that skip the standard loop may need the `[new_badge post_id="ID"]` shortcode instead.

== Screenshots ==

1. Settings page — threshold, colours, and display location controls.
2. Badge displayed inline with an archive listing title.
3. Badge appended to a navigation menu item.

== Changelog ==

= 1.0.0 =
* Initial release.
