WordPress comes with five default post types, which are posts, pages, attachments, revisions and menus. Users can also create their own custom post types. This gives them power to create different types of content and display them differently on their websites. Recently we found a need to merge two custom post type into one for a clientβs project. In this article, we will show you how to switch custom post types without writing any code. Suppose if you created a post and wanted to covert it into a page, or a vice-versa, then you would be able to do this by following this tutorial. If you want to switch from one custom post type to another, then you would be able to do that as well. Lastly, you will be convert multiple post types at once which will allow you to save a lot of time.
First thing you need to do is install and activate the Post Type Switcher plugin. Post Type Switcher adds an option to switch post type of a specific post by going to the post edit screen or manage posts area. On the edit screen of your post or another post type, you will see a drop down under the βPublishβ meta box. Choose the post type you want to switch to and click the update button.
You can also quickly change an individual postβs type from the Quick Edit screen while viewing all posts:
Post Type Switcher also allows you to switch post type for multiple posts by editing them in the bulk action mode. Follow these steps:
- Go to All Posts
- Select the posts you want to change
- In the Bulk Actions drop-down menu, located towards the top left side of the screen, select Edit and press the Apply button.
- Now you will see all selected posts in quick edit mode. Review the posts you have selected and then change the post type as needed.
Converting Multiple Post Types Advanced Mode
Post Type Switcher is a quicker and a simpler solution. However, there might be situations where you would need to select post types in a particular category, tag, or post types with a particular post format. In such situations you can use Convert Post Types plugin. Install and activate this plugin. Upon activation, a new βConvert post typesβ menu item will appear under Tools. You will notice that it is a powerful plugin, which allows you to do so many things and select posts by filtering them into categories, parent pages, tags, etc.
If you ever wanted to switch a post to a page in WordPress, convert a page into a post, or merge two custom post types into one, then we hope that you found this article helpful. If you have any questions, then please leave them in the comments. If you have used other methods to convert post types in WordPress, then share it with us in the comments below.