Changing the type of WordPress content has never been easier
When working with WordPress, it often happens that an article has been created under the wrong content type (post type). For example, an article written as a "publication" when it should have been a "portfolio". Until now, this would have required the use of a third-party plugin or manual manipulation of the database. To simplify this common task, we have integrated the Post Type Switcher in WPMasterToolKit.
Which plugin can Post Type Switcher replace?
This module replaces popular plugins such as Post Type Switcher by John James Jacoby, while integrating more seamlessly with WordPress administration, without overloading the system.
Change your post type in one click
The module Post Type Switcher allows you to change the type of WordPress content (post, page, or any other custom post type) with a single click from :
- the classic editing screen
- block editor (Gutenberg)
- fast editing
- bulk editing
It adds a "Type" column to the list of contents, as well as a selection field for modifying the type directly without leaving the interface.
Full WordPress integration
We have taken great care to integrate this module into all administration interfaces:
- Classic edition a new field appears in the publication box with a "Modify" link to safely change the content type.
- Fast, grouped editing drop-down menus are injected into native forms, with automatic synchronization after saving.
- Block editor (Gutenberg) a button in the side column displays a popup allowing you to choose another type, with a confirmation message before taking action.
How to use this module
Simply activate the Post Type Switcher from the WPMasterToolKit interface. Once activated :
- Go to the "Articles", "Pages" or any custom post type screen.
- In the "Type" column, click on "Modify" (in the article) or use Quick Edit.
- Select the desired new type.
- Save, and the content type will be updated.
Our technical choices
To ensure performance and compatibility :
- The module is loaded only if the user is on a relevant page (
post.php
,edit.php
oradmin-ajax.php
). - The type change is protected by a secure nonce.
- A customized hook
do_action( 'wpmastertoolkit/post_type_switcher/after_switch', $new_type, $old_type, $post_id )
allows developers to act after a type change. - For multilingual sites with WPMLthe module automatically synchronizes the content type between translations to avoid desynchronization.
- The types of content available are filtered to exclude
attachments
and propose only public types with an interface.
Conclusion
The module Post Type Switcher from WPMasterToolKit saves you time and effort in managing your content. No need to install an additional plugin: simply activate this module and enjoy a native, consistent and secure experience for managing your content types in WordPress.
With WPMasterToolKit, every module does exactly what it's supposed to, when it's supposed to - no more, no less.