Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Is that possible?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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.

share|improve this answer
    
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. –  AlxVallejo Jan 17 '12 at 15:34
1  
Turn off your plugins and switch to the default theme. –  kaiser Jan 17 '12 at 18:24
    
Thanks kaiser, that worked! I'd be happy to give you the check. –  AlxVallejo Jan 18 '12 at 16:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.