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

Any way to restore content back to Wordpress? #196

Closed nathanmokh closed 6 years ago

nathanmokh commented 6 years ago

I'm a little confused with how the code interacts with Wordpress, is there any way to download content to restore as if we were using the synced repo as a backup? Currently using this plugin and its great, could be better if I don't have to separately back up content.

mAAdhaTTah commented 6 years ago

Yeah, the plugin syncs both ways. See here: https://github.com/mAAdhaTTah/wordpress-github-sync#configuring-the-plugin You need to set up the GitHub webhook, and changes in the repo will be reflected in WordPress.

sivyel commented 4 years ago

Draft posts not working both ways, updating from git to wordpress.

Not working from wordpress to git

jeffpaul commented 4 years ago

@sivyel I would consider that expected behavior. Anything that's on git I'd consider published on the WordPress side of things.

mAAdhaTTah commented 4 years ago

There is a filter that you can use to enable syncing drafts, but no, drafts don't sync by default.

sivyel commented 4 years ago

Can we have any information about that filter ? Do you have any reference ?

mAAdhaTTah commented 4 years ago

The filters are documented in the wiki