Support » Fixing WordPress » turn a POST into a PAGE

  • weejy

    (@weejy)


    Is there a quick and easy way to convert a post into a page?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Chris_K

    (@handysolo)

    I can think of two options.

    1) Edit the post. Select the text and copy. Create new page, paste. Delete post. 🙂

    2) How do you feel about direct database editing?
    If you’re comfy with phpMyAdmin, or something similar, you could probably do it pretty easily. Posts and pages are both in wp_posts table. If you find the post you’re after in there and change post_status from “publish” to “static” and perhaps give it a prettier post_name (aka title and for posts is usually a slug) you probably got it done.

    Disclaimer: just guessing at option 2 based on some db crawling I was doing recently.

    Kafkaesqui

    (@kafkaesqui)

    This may be a little easier:

    3) Collect the ID# of the post you want to switch to a Page. Next, go to Manage > Pages and click edit for a Page (any one will do). For this next part you’ll need to have your browser’s url/address box displayed: Change the url from

    /wp-admin/page.php?action=edit&post=PAGEID

    to

    /wp-admin/page.php?action=edit&post=POSTID

    POSTID being the ID# for your post. Click Go/Load/whatever to load the post in the Page editor. Finally, save the *Page*.

    Chris_K

    (@handysolo)

    yup – that’s even easier. Nice one!

    Kafkaesqui

    (@kafkaesqui)

    Note the above works in reverse as well (turning a Page into a post).

    Thread Starter weejy

    (@weejy)

    It tried that, but when I change the page ID to the post ID in the address bar and load it, the page editor screen reverts to “write post”. I’m using V2.02.

    I with weejy. My editor reverts to write post with WP V 2.02. any suggestions?

    I knocked together a hack of the post.php page (called it post-apc.php). I did it after an upgrade got messed up. It is a HACK and probably not the best way to do it, but heck it works…

    http://wordpress.pastebin.ca/210188

    Should do it for ya 😉

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘turn a POST into a PAGE’ is closed to new replies.