=== ID Post Order ===
Contributors: insightdezign
Tags: post order, drag and drop, menu order, sort, reorder
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

Simple drag-and-drop post ordering for all post types. Updates menu_order with zero configuration.

== Description ==

ID Post Order adds a drag-and-drop interface to reorder posts, pages, and custom post types in the WordPress admin. It updates the built-in `menu_order` field — no custom tables, no bloat.

**Features:**

* Drag-and-drop reordering on any post list screen
* Works with posts, pages, and all custom post types
* Adds an Order column with a grip handle
* Saves instantly via AJAX — no save button needed
* Handles pagination correctly
* Zero configuration — activate and go

**Developer friendly:**

* `idpo_enabled_post_types` filter to exclude specific post types
* Uses the core `menu_order` field — no proprietary data
* Ordering data is preserved even after plugin removal

== Installation ==

1. Upload the `id-post-order` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins menu.
3. Visit any post list — drag the grip handle in the Order column to reorder.

== Frequently Asked Questions ==

= Does this affect the frontend? =

The plugin sets the `menu_order` field on posts. Whether your theme or queries use `menu_order` for frontend display depends on your theme. The plugin only provides the admin UI to set the values.

= Can I exclude a post type? =

Yes, use the `idpo_enabled_post_types` filter:

`add_filter( 'idpo_enabled_post_types', function( $types ) {
    return array_diff( $types, array( 'product' ) );
} );`

= What happens when I deactivate the plugin? =

Your ordering is preserved. The `menu_order` values are part of the WordPress post data and remain intact.

== Changelog ==

= 1.0.1 =
* Fixed pagination: ordering now carries over correctly across all pages.
* Order column displays position-based numbers instead of raw menu_order values.
* Added secondary sort by ID for consistent ordering of posts with identical menu_order.

= 1.0.0 =
* Initial release.
