=== Ansico Switch Post Type ===
Contributors:      aphandersen
Plugin URI:        https://ansico.dk/Ansico/Ansico-Switch-Post-Type
Author:            Andreas Andersen (Ansico)
Author URI:        https://ansico.dk
Tags:              post type, switch post type, convert post type, quick edit, gutenberg, block editor, classic editor
Requires at least: 5.8
Tested up to:      6.7
Stable tag:        1.0.0
Requires PHP:      7.4
License:           GPLv3 or later
License URI:       https://www.gnu.org/licenses/gpl-3.0.html

Switch the post type of any post, page or custom post type directly from the editor sidebar or via Quick Edit — no workarounds needed.

== Description ==

**Ansico Switch Post Type** makes it effortless to change the post type of any content in WordPress. Whether you accidentally created a post when you meant to create a page, need to move content to a custom post type, or want to reorganise your content structure in bulk — this plugin has you covered.

= Features =

**Block Editor (Gutenberg)**
A dedicated "Post Type" panel appears at the top of the Document Settings sidebar. Select a new type from the dropdown and click "Switch Post Type". The switch happens instantly via the REST API and the editor reloads into the correct context for the new type — no full page save required.

**Classic Editor**
A "Post Type" metabox is added at the top of the sidebar, alongside Status, Visibility, Author and similar fields. Simply select a new type and save the post to apply the change.

**Quick Edit**
A "Post Type" field is available directly in the Quick Edit panel in the post list view. Change the type of multiple posts one by one without leaving the list — fast and efficient for content reorganisation tasks.

= Supported Post Types =

All public post types are supported automatically — including the built-in `post` and `page` types and any custom post type registered with `public => true`. The plugin detects available post types dynamically, so newly registered types appear without any extra configuration.

= Privacy =

This plugin does not collect, store or transmit any personal data.

== Installation ==

1. Upload the `ansico-switch-post-type` folder to `/wp-content/plugins/`, or install the plugin through the WordPress plugin screen.
2. Activate the plugin via the **Plugins** menu in WordPress.
3. Open any post, page or custom post type in the editor. The **Post Type** panel/metabox will appear at the top of the sidebar.

== Frequently Asked Questions ==

= Will switching post type affect my content? =
The post content, title, excerpt, featured image and metadata are preserved. Taxonomy terms that do not exist on the new post type will no longer be accessible from the editor, but the relationships remain in the database.

= Does it work with custom post types? =
Yes. All post types registered with `public => true` are listed automatically.

= Is it compatible with the Classic Editor plugin? =
Yes. When the Classic Editor plugin is active, the metabox is shown instead of the Gutenberg panel.

= Can I switch multiple posts at once? =
Use Quick Edit in the post list view to switch posts one at a time without opening each individually. True bulk-switching (selecting many rows at once) is not supported in this version.

== Screenshots ==

1. Post Type panel in the Block Editor (Gutenberg) sidebar.
2. Post Type metabox in the Classic Editor sidebar.
3. Post Type field in the Quick Edit panel.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Block Editor (Gutenberg): PluginDocumentSettingPanel with REST API-based instant type switching.
* Classic Editor: High-priority metabox in the editor sidebar.
* Quick Edit: Post type field in the post list Quick Edit panel.
* Supports all public post types, including built-in and custom.

== Upgrade Notice ==

= 1.0.0 =
Initial release — no upgrade steps required.
