WordPress.org

Ready to get started?Download WordPress

Forums

turn a POST into a PAGE (9 posts)

  1. weejy
    Member
    Posted 8 years ago #

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

  2. Chris_K
    Member
    Posted 8 years ago #

    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.

  3. Kafkaesqui

    Posted 8 years ago #

    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*.

  4. Chris_K
    Member
    Posted 8 years ago #

    yup - that's even easier. Nice one!

  5. Kafkaesqui

    Posted 8 years ago #

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

  6. weejy
    Member
    Posted 8 years ago #

    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.

  7. JaneLitte
    Member
    Posted 8 years ago #

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

  8. the_ape
    Member
    Posted 7 years ago #

    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 ;)

  9. Kafkaesqui

    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags