How to convert / change post type in wordpress

WordPress uses various post types to store and display content on your website. The most common post types are Posts, Pages, Attachments and Menus.

Do you know that it is also possible to convert one post type to another?

Recently I came across a situation where I wanted to change a post to a page.

In this tutorial, I will share step by step instructions to switch on post type to other.

We will make use of the Post Type Switcher Plugin.

1. Install the Post Type Switcher Plugin

The plugin can convert nearly every combination of posts, pages, and even custom post types:

  • Page to Post
  • Post to Page
  • Post to Custom
  • Custom to Custom

Once you activate the plugin, it will insert a Post Type option for every post. The switch option will appear in the post editor screen as well as in the quick edit screen. Refer to the screenshot.

Post Switch in the Post Editor Screen

Post Switcher in Post Editor

And here it is under the Quick Edit Section

The Post Switcher option in the Quick Edit Section

So in order to change the post type, simply select the type of post your want to convert to and save.

The corresponding post will be converted to the selected post type.


2. Making Bulk Edits

Lets say to want to change posts belonging to a certain category into pages. You can do so easily via bulk editing.

  • First, Got to All Posts
  • Now filter the posts based on category.
  • Now select the posts and use the bulk edit option.
  • Change the Post via the Post Type DropDown

This way you can easily change the post types in bulk.


3. Important Point

When you change the post type, then it can affect the url of your posts.

For example if you display your post url like website.com/category/post-title, ten converting this post to a page will change the url structure.

Since pages do not have categories, the /category/ part will be removed from the url of the converted post.

So , you might need to create redirects after converting post types.


Conclusion

Changing on post type to others is super easy in WordPress. All you need is the Post Type Switcher plugin and you are set.

Do you have a question? Feel free to ask in comments

Leave a Comment

Your email address will not be published. Required fields are marked *