mAAdhaTTah / wordpress-github-sync

A WordPress plugin to sync content with a GitHub repository (or Jekyll site)
https://wordpress.org/plugins/wp-github-sync/
GNU General Public License v3.0
613 stars 99 forks source link

Option to Disable tracking ACF fields #171

Closed cvharris closed 7 years ago

cvharris commented 7 years ago

I have a page that has several ACF fields with content in them. Exporting to Github, the FrontMatter keeps a lot of the data intact. However, on a push to Github from local changes this sync doesn't handle the custom Repeater field and a few others in ACF, replacing whole chunks of custom fields with and array of strings they can't process.

This plugin would be great if it gave users the option to only sync frontmatter of WP metadata and post/page content.

mAAdhaTTah commented 7 years ago

Related to #159. I think I'm going to remove custom meta completely.

cvharris commented 7 years ago

Any update on this?

mAAdhaTTah commented 7 years ago

@cvharris I haven't had a lot of time to work on this myself. Couple things I'll mention:

  1. You can control the meta exported, so if you're having issues on your site, you should be able to resolve it by filtering it out of the meta array.
  2. I'd happily accept a PR to remove that block of code, if you want to update it in the mainline. I do think removing custom meta handling is the way to go, with users explicitly opting in what meta they want to keep beyond the defaults.
litefeel commented 7 years ago

@mAAdhaTTah No effect

mAAdhaTTah commented 7 years ago

I haven't released the update yet :)