Updating Posts table in database without overwriting user generated content

I'm trying to come up with a local development workflow for wordpress that actually works. I'm pretty new to t

I'm trying to come up with a local development workflow for wordpress that actually works. I'm pretty new to this whole thing but I'm surprised this is so complicated. So far I've been using Git and WP Migrate DB, but that no longer will cut it after launching the site.

Under another question it's suggested that one should never make database changes on a staging environment. This seems absurd to me, since that would make any meaningful change impossible outside of isolated plugin or theme updates. Doesn't this defeat the whole purpose of having a local dev environment? What if I need to change the front page or the menu or anything really?

I could simply use WP Migrate DB or some similar tool if Wordpress wouldn't store everything but the kitchen sink in the same Posts table. Is there a good way to update some post-types while leaving other (user generated) post types intact? WP Migrate DB has an "ignore post types" feature but apparently that still overwrites everything on the other side, so it's not very useful.

I really don't want to end up with manual exports and pages long mysql queries in order to avoid directly editing the live site on a daily basis. Both seem to be terrible ideas.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1749257922a4819075.html

相关推荐

  • Updating Posts table in database without overwriting user generated content

    I'm trying to come up with a local development workflow for wordpress that actually works. I'm pretty new to t

    3月前
    1840

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信