=== Display Last Posts on Menu Item ===
Contributors: sersebasti
Tags: posts, menu, dynamic, update, recent posts, menu updates
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A plugin to dynamically display the latest posts in a specific menu item.

== Description ==

This plugin allows you to dynamically update a specific menu item with the latest posts, ensuring your site menu always stays current with your most recent content.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/display-last-posts-on-menu-item` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Find the plugin settings under the 'Display Last Posts on Menu Item' menu in the WordPress admin dashboard.

== Frequently Asked Questions ==

= How do I use this plugin? =

1 **Select Configuration**:
   - Go to the 'Display Last Posts on Menu Item' settings page in the WordPress admin dashboard.
   - Select the menu, menu item, and the number of posts you want to display.
   - Click the 'Update Configuration' button to save your settings.

2 **Manual Update**:
   - Click the 'Update Menu with Latest Posts' button.
   - This will trigger the plugin to remove any existing items in the specified menu item and add the most recent posts according to your configuration.

3 **Schedule Operation**:
   - Set Start Timestamp and Repeat periodicity.
   - This will create a scheduled task that will update the menu.

= Can I schedule the plugin to automatically trigger menu updates at a certain time with some periodicity? =

Yes, this is currently possible.

== Changelog ==

= 1.1.4 =
* Fix: Fixed checkbox persistence view issue on admin page.

= 1.1.3 =
* Tested up to WordPress 6.8

= 1.1.2 =
* Fix: replaced `date()` with `gmdate()` to ensure correct UTC time handling

= 1.1.1 =
* Initial release.

== Upgrade Notice ==

= 1.1.4 =
Fixes checkbox display issue on admin screen when scheduling is enabled.

= 1.1.3 =
Compatibility update for WordPress 6.8.

= 1.1.2 =
Replaced date() with gmdate() for correct UTC scheduling.

= 1.1.1 =
Initial release.
