deliciousbrains / wp-migrate-db

WordPress plugin that exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.
https://wordpress.org/plugins/wp-migrate-db/
341 stars 515 forks source link

Do not remove excluded post type, just not alter them #105

Closed romainarchimbaud closed 2 years ago

romainarchimbaud commented 4 years ago

Hi there, I'm new to github so I hope I'm in the right place to explain my issues.

Is it possible when you exclude a post_type for a pull/push to not remove it from the wp table? What I want in fact is, from my local environnement I got a new blog post and also I'm still working on a page update. I want to push my blog post on the production website but excluding the post_type "Page". Actually if I exclude my "Page" post_type, all those post_type are remove. And what I want is just to not alter them. Maybe there is some hook to tweak with? Regards

kevinwhoffman commented 2 years ago

Hi, I know this is an old issue, but I wanted to follow up and clarify that a push/pull migration involves the complete replacement of database tables. So when you choose to exclude a post type, that data is left out of the migration completely. When the tables are replaced on the destination site, there will be no entries for that post type.

At this time, there is no way to exclude individual posts.