Categories
WordPress

How to convert “Post” to “Page”

We know there are different types of content in WordPress. By default, there are posts and pages.

Just simply run this SQL query in phpMyadmin (recommended for developers only)

If you’re not a developer then don’t to anything just simply log in to your cPanel >open phpMyadmin >

Find your database and click SQL tab, check this screenshot

How to convert "Post" to "Page" 2
UPDATE wp_posts SET post_type = 'page' WHERE post_type = 'post'

I wanted something simple and easy. So I opted to use Post Type Switcher — a WordPress plugin which allows you to switch / convert the post type without any hassles (and without a line of code).

Have you ever changed a WordPress post to a page or vice versa? Share the method you used for changing the page to post in the comments below!

By Murshid Alam

Organizer of Barishal WordPress Meetup, WordPress Enthusiastic and, Open Source Lover. Over the last few years, I learned web programming and worked with them locally. I also assist in designing, developing and testing websites too!

Before coming to web programming I was mostly involved with Electric Media(Channel i), Newspaper (Priyo, Bhorer Kagoj) and volunteering activities (including NGOs).

I love to contribute to the WordPress Community. I am always happy to meet new peoples in the WordPress community and see how I can help them achieve their goals. When I am not online and WordPress, I love to play football, travel, riding the bike and attend Meetup/WordCamps!

If you’d like, you can help me to attend WordCamps around the World.

Leave a Reply