=== Sticky Posts Limit ===
Contributors: wppassiondev, sumon1068
Tags: sticky posts, limit sticky posts, featured posts, sticky post control, wordpress sticky posts
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Limit the number of sticky posts automatically. Keep your featured posts clean, controlled, and clutter-free.

== Description ==

By default, WordPress lets you make unlimited posts sticky, which can quickly clutter your homepage and make featured content harder to manage.

**Sticky Posts Limit** gives you full control by letting you define how many sticky posts you want to keep.

When the limit is exceeded:
- Only the most recent sticky posts are kept
- Older sticky posts are automatically unmarked

👉 No need to manually remove sticky status from old posts — the plugin handles everything for you automatically.

This keeps your homepage clean, focused, and easy to manage.

Perfect for blogs, news sites, and magazine-style layouts where controlling featured content matters.

Developed by [WP Passion](https://wppassion.com)

== Features ==

- Set your own limit for sticky posts (e.g., 1, 3, 5)
- Automatically removes sticky status from older posts
- No manual cleanup required
- Simple and intuitive settings page
- Works seamlessly with Gutenberg
- Compatible with Classic Editor and Quick Edit
- Lightweight and performance-friendly

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Settings → Sticky Posts**
4. Set how many sticky posts you want to keep
5. Click **Save Changes**

== Frequently Asked Questions ==

= Does this plugin affect website performance? =
No. The plugin only runs when sticky posts or settings are updated and has no impact on front-end performance.

= Does it work with Gutenberg? =
Yes. It works perfectly with Gutenberg, Classic Editor, and Quick Edit.

= Can I keep multiple sticky posts? =
Yes. You can define how many sticky posts you want from the settings page.

= Will it affect custom post types? =
No. WordPress sticky functionality applies only to standard posts by default.

= Do I need to manually unstick old posts? =
No. The plugin automatically removes sticky status from older posts when the limit is exceeded.

== Screenshots ==

1. Settings page to define sticky post limit
2. Example showing controlled number of sticky posts

== Changelog ==

= 1.0.1 =
* Improved handling of scheduled posts in sticky limit logic

= 1.0.0 =
* Initial release