Sometimes you need to change a WordPress post into a page, or the other way around. Maybe you created content in the wrong place, or you’re restructuring your website. You can do it by just copy and paste content from post to page. But here are different ways to do this conversion.
Always backup your website before making any changes.
5 methods to convert posts to pages in WordPress
There are basic and advanced methods depending on your knowledge about WordPress. We recommend consulting with your WP partner if you want to touch the coding side of your website.
Using plugins
These plugins make it easy to convert posts to pages with just a few clicks:
Swift Switcher
- Go to Plugins > Add New in your WordPress admin
- Search for “Swift Switcher”
- Install and activate the plugin
- Go to Swift Switcher in your admin menu
- Select the posts you want to convert
- Choose “Page” as the new post type
- Click to convert
WP Sheet Editor
- Install and activate WP Sheet Editor
- Go to WP Sheet Editor > Edit posts
- Open the Bulk Edit tool
- Select “I want to search rows to update”
- Filter the posts you want to convert
- Set “Post Type” to “page” in the bulk edit
- Click “Execute now”
Export and import method
- Go to Tools > Export in WordPress
- Select “Posts” and download the XML file
- Open the file in any text editor
- Find
<wp:post_type><![CDATA[post]]></wp:post_type> - Change “post” to “page” for the posts you want to convert
- Save the file
- Delete the original posts (optional)
- Go to Tools > Import and upload your modified file
Using WP-CLI commands
If you have command line access to your website:
# Convert one post to page
wp post update [POST_ID] --post_type=page
# Convert multiple posts at once
wp post list --post_type=post --format=ids | xargs -I {} wp post update {} --post_type=page
Replace [POST_ID] with the actual number of your post.
Custom PHP code
Add this code to your theme’s functions.php file via Code Snippet plugin
function convert_post_to_page($post_id) {
wp_update_post(array(
'ID' => $post_id,
'post_type' => 'page'
));
}
// Use it like this (replace 123 with your post ID):
// convert_post_to_page(123);
Remove the code after using it.
Database method
This method directly changes your database and can break your site if done wrong.
UPDATE wp_posts SET post_type = 'page' WHERE ID = [POST_ID];
Only use this if you know what you’re doing with databases.
Things to remember
When you convert posts to pages:
- Your website URLs might change
- You may need to update your menus and links
- Some content features might work differently
Conclusion
The plugin methods are the safest and easiest ways to convert posts to pages. The other methods are available if you need them for specific situations or if you’re comfortable with more technical approaches.
Always test these methods on a backup or staging site first to make sure everything works the way you expect.





