Title: localhost
Last modified: August 30, 2016

---

# localhost

 *  [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/)
 * Hello,
 * A great thank you for this plugin which is looking really promising.
 * I’m trying to import/export from a localhost installation of wordpress. I guess
   there is no other solution than using my IP with a port mapping on my router 
   as a web hook callback ?
 * [https://wordpress.org/plugins/wp-github-sync/](https://wordpress.org/plugins/wp-github-sync/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683567)
 * Ok I was able to make it work doing this, but I can’t import posts created on
   the online version… but what i publish on localhost is properly pushed to my 
   github repository (but not synced on the online version). Any idea ?
 *  Plugin Author [James DiGioia](https://wordpress.org/support/users/jamesdigioia/)
 * (@jamesdigioia)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683615)
 * First, did you create the GitHub webhook? Check the README for instructions: 
   [https://github.com/benbalter/wordpress-github-sync/blob/master/README.md#configuring-the-plugin](https://github.com/benbalter/wordpress-github-sync/blob/master/README.md#configuring-the-plugin)
 * If you’re running your website locally, it has to be reachable by the GitHub 
   webhook. If you have the webhook working, you can check the webhook settings 
   and see what the response to the webhook call is.
 *  Thread Starter [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683641)
 * Hello, the web hook seems to work but there is an error in the body message :
   {“
   result”:”error”,”message”:”Not on the master branch.”}
 *  Plugin Author [James DiGioia](https://wordpress.org/support/users/jamesdigioia/)
 * (@jamesdigioia)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683663)
 * WPGHS doesn’t import posts not on the master branch, so it looks like everything
   is working as expected. I should add a note to the README though.
 *  Thread Starter [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683665)
 * Do you mean that if I create a branch, the plugin should be able to import posts
   and pages ?
 *  Plugin Author [James DiGioia](https://wordpress.org/support/users/jamesdigioia/)
 * (@jamesdigioia)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683689)
 * Every git repo has (or should have) a `master` branch where the latest and greatest
   code lives. WPGHS only imports posts/pages from this branch so the content on
   your site is in sync with the latest and greatest. This allows you to use git
   as you normally would (branches, PRs, etc.) and only have it show up when you
   merge into `master`.
 *  Thread Starter [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683690)
 * Ok, that’s what I understood. The only thing I can’t make work is importing data
   from github to another wordpress install. But maybe is their a misunderstood 
   and WPGHS cannot perform this task ?
 *  Plugin Author [James DiGioia](https://wordpress.org/support/users/jamesdigioia/)
 * (@jamesdigioia)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683692)
 * Assuming you mean exporting from one WP install to import into another through
   a GitHub repo: It might be possible, but it hasn’t been written with that in 
   mind. The biggest issue is that the post IDs won’t match between two different
   installs, so I don’t know what kind of issues that will cause and/or how WordPress
   will deal with that, unless you’re starting one of them from scratch.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘localhost’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-github-sync.svg)
 * [WordPress GitHub Sync](https://wordpress.org/plugins/wp-github-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-github-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-github-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-github-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-github-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-github-sync/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [James DiGioia](https://wordpress.org/support/users/jamesdigioia/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/localhost-12/#post-6683692)
 * Status: not resolved