0

I'm looking to export only wp_posts where post_type = post.

Is that possible?

1 Answer 1

4

In your WordPress Dashboard, if you go to Tools > Export, you can select your custom post type and export only posts in that post type.

It gives you the option between All Content, Posts, Pages, and your custom post types following those three options.

As for SQL, well are you looking to export the data from something like phpMyAdmin? You could use this:

SELECT * 
FROM  `wp_posts` 
WHERE  `post_type` =  "post type name here"

Hope this helps.

Also, as kaiser pointed out in a comment, you may need to deactivate all plugins and switch to the default theme.

3
  • When I try to import the exported data using this method, I get a white screen with an error: {status: ok} . The posts are not imported. Commented Jan 17, 2012 at 15:34
  • 2
    Turn off your plugins and switch to the default theme. Commented Jan 17, 2012 at 18:24
  • Thanks kaiser, that worked! I'd be happy to give you the check. Commented Jan 18, 2012 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.