WordPress.org

Ready to get started?Download WordPress

Forums

Convert Post Types
[resolved] Lost Content (3 posts)

  1. momsbistro
    Member
    Posted 1 year ago #

    So, I can't read apparently, and I didn't back up my website properly (I used an external backup that doesn't work with WordPress...:|), so I lost all of the content of my posts. Is there anyway at all that I can get all of this information back?

    Any help would be greatly appreciated. I lost EVERYTHING :(

    Thanks,
    Lindsie

    http://wordpress.org/extend/plugins/convert-post-types/

  2. Stephanie Leary
    Member
    Plugin Author

    Posted 1 year ago #

    Oh dear. I'm so sorry to hear that! Do you have access to your database through PHPMyAdmin or some other tool? If so, check your wp_posts table to see if the posts are still there, perhaps with something other than 'post' in the post_type field. If you've just accidentally changed the post type to one that isn't registered anymore or something, they would no longer show up in your admin screens, but they'd still be in the database.

    If they are, then it would be fairly easy to fix with a query. For example, here's how you would look for all posts and change them into pages:

    UPDATE wp_posts SET post_type = 'page' WHERE post_type = 'post'

    Just replace 'post' and 'page' in that snippet with the post types in your site, then paste that into the SQL tab in PHPMyAdmin (or whatever).

  3. momsbistro
    Member
    Posted 1 year ago #

    Well, I see the post name in the list, and when I view it, I see that the page is still there, I have just lost all of the text of the posts. Is this something different?

    All of the posts I wanted switched to 'recipes' are there, they just have absolutely no text.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.