{"id":76,"date":"2025-02-22T22:52:44","date_gmt":"2025-02-22T22:52:44","guid":{"rendered":"https:\/\/notes.zj1963.com\/?p=76"},"modified":"2025-02-22T22:52:44","modified_gmt":"2025-02-22T22:52:44","slug":"convert-page-to-post","status":"publish","type":"post","link":"https:\/\/notes.zj1963.com\/?p=76","title":{"rendered":"Convert Page to Post"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>How to Convert a Page to a Post in WordPress<\/strong><\/h3>\n\n\n\n<p>If you need to <strong>convert a WordPress page into a post<\/strong>, here are the best ways to do it:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1\ufe0f\u20e3 Use a Plugin (Easiest Method)<\/strong><\/h2>\n\n\n\n<p>The best way to convert a page to a post is by using a plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\ud83d\udd39 Recommended Plugin:<\/strong> <a href=\"https:\/\/wordpress.org\/plugins\/post-type-switcher\/\">Post Type Switcher<\/a><\/h3>\n\n\n\n<p>\u2705 <strong>Allows easy conversion between pages and posts<\/strong><br>\u2705 <strong>Keeps content, SEO, and formatting intact<\/strong><br>\u2705 <strong>No coding required<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\ud83d\udd39 Steps to Convert a Page to a Post<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install &amp; Activate<\/strong> the &#8220;Post Type Switcher&#8221; plugin.<\/li>\n\n\n\n<li>Go to <strong>Pages \u2192 All Pages<\/strong> in the WordPress dashboard.<\/li>\n\n\n\n<li>Find the page you want to convert.<\/li>\n\n\n\n<li>Click <strong>Quick Edit<\/strong> and change the &#8220;Post Type&#8221; to <strong>Post<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Update<\/strong>\u2014done! \ud83c\udf89<\/li>\n<\/ol>\n\n\n\n<p>\ud83d\udccc <strong>You can also bulk-edit multiple pages<\/strong> to convert them into posts.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2\ufe0f\u20e3 Convert Manually (Without a Plugin)<\/strong><\/h2>\n\n\n\n<p>If you don\u2019t want to use a plugin, you can manually <strong>copy the page content and re-create it as a post<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\ud83d\udd39 Steps:<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the page you want to convert.<\/li>\n\n\n\n<li>Copy all the content.<\/li>\n\n\n\n<li>Go to <strong>Posts \u2192 Add New<\/strong> and paste the content.<\/li>\n\n\n\n<li>Assign the correct category and tags.<\/li>\n\n\n\n<li>Click <strong>Publish<\/strong>, then delete the original page (optional).<\/li>\n<\/ol>\n\n\n\n<p>\ud83d\udccc <strong>This method is best for a small number of pages.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3\ufe0f\u20e3 Convert Using PHP Code (For Developers)<\/strong><\/h2>\n\n\n\n<p>If you need to <strong>bulk convert<\/strong> pages to posts, you can use a small PHP script.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\ud83d\udd39 Add This Code to <code>functions.php<\/code><\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>function convert_pages_to_posts() {\n    global $wpdb;\n    $wpdb-&gt;query(\"UPDATE $wpdb-&gt;posts SET post_type='post' WHERE post_type='page'\");\n}\nadd_action('init', 'convert_pages_to_posts');<\/code><\/pre>\n\n\n\n<p>\ud83d\udccc This will convert <strong>ALL<\/strong> pages to posts!<br>\ud83d\udd34 <strong>Warning:<\/strong> Remove the code after running it to prevent it from executing repeatedly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\ud83c\udfaf Which Method Should You Use?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 <strong>Use a Plugin<\/strong> if you want a quick and easy way.<\/li>\n\n\n\n<li>\u2705 <strong>Copy &amp; Paste Manually<\/strong> if you only need to convert a few pages.<\/li>\n\n\n\n<li>\u2705 <strong>Use PHP Code<\/strong> if you want to bulk-convert many pages.<\/li>\n<\/ul>\n\n\n\n<p>Would you like help choosing the best option for your case? \ud83d\ude0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Convert a Page to a Post in WordPress If you need to convert a WordPress page into a post, here are the best ways to do it: 1\ufe0f\u20e3 Use a Plugin (Easiest Method) The best way to convert a page to a post is by using a plugin. \ud83d\udd39 Recommended Plugin: Post Type [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":1,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}