InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Wordpress How-Tos

  • angularjs in wordpress
  • Convert wordpress page to posts and vice versa
  • Find all user created wordpress custom field keys
  • How to automate wordpress sandbox setup on Linux
  • How to capture php code or included file output in a variable
  • How to check the performance of a plugin using mysql query log
  • How to migrate wordpress from root to sub directory
  • How to upgrade wordpress manually
  • How to view wordpress current version
  • Setup xdebug for remote wordpress debugging
  • Wordpress - disable theme and plugin editing
  • Wordpress - get wpdb class method names
  • Wordpress multisite network vs normal installation
  • display method names from php WP_Query object
  • find if a wordpress page is leaf page
 
  • Home
  • > Tutorials
  • > Wordpress
  • > Wordpress How To

Convert wordpress page to posts and vice versa

By admin on Nov 23, 2015

Sometimes we want to convert a wordpress page to post or vice versa. WordPress treats a post slightly differently. e.g. WordPress shows posts automatically in RSS feed and home page. Here are some ways to convert a page to post. Similar steps would apply to convert a post to page.

Convert page to post manually

You can always convert page to post by manually creating a new post and deleting the old page. This will not change the publishing date though. You can manually change that to old value.
wordpres-publish-data-edit-screen

Convert using plugin post type switcher

You can use wordpress plugin post type switcher to convert post to page (or vice versa) one at a time. Once the plugin is installed and activated, go to edit page admin ui. You should see Post Type value in publishing options as shown below:
post-type-switcher-admin-post-type-change-link Click on Edit link next to Post Type and change the Post Type to desired value as shown below:
post-type-switcher-admin-post-type-change-dropdown

What happens when you change Post Type in wordpress

WordPress uses wp_posts table to store both posts and pages. The column post_type decides the type of the post. When you change a post type to page the value of this column also changes accordingly.

Here is the results of query select distinct post_type from wp_posts

attachment
nav_menu_item
page
post
revision

Suggested posts:

  1. WordPress – query to find all posts for a category
  2. How to create Linux instance on Amazon AWS/EC2 Classic
  3. HTML li tag
  4. PHP check if key exists in array
  5. How to show wordpress pages on front page with skip_home custom field
  6. PHP – how to catch errors using set_error_handler
  7. How to add tag and category to wordpress pages
  8. How to display wordpress top level pages
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Tutorials, Wordpress, Wordpress How To
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress