I want to be able to post via a git repo. For example I have a repo named "blog" which contains these files:


I want all these files to appear in my blog like normal posts. I also want to be able to edit the files from the admin panel too (not only via git). Is there any way to do that?

  • 2
    You haven't given much to go on. And this strikes me ans a pretty limited case, which may not fit the guidelines in the faq. Look for the part about "too localized" – s_ha_dum Dec 28 '12 at 19:57
  • Is it a custom git or open service or install with a API, like Github with json api? – bueltge Dec 28 '12 at 21:14

Like the comments on this question stated, there is far too little detail in your post and it is far too localized of a question for this forum, but here is a general idea of what a project of this nature would require:

You would need to utilize the GitHub API to dynamically pull new posts, as well as to enable modifying of the content and reposting back to GitHub.

You would also need to develop a plugin that handles the integration of a GitHub repo with the WordPress posts using the WordPress API.

In general, posts are stored in a database. You would need to override (or supplement) this behavior with support for pulling from a new source (GitHub).

All that said, this is a massive job for what seems like a very small payoff. If you don't mind me asking, why would you want to do this?

  • Yes, you're right. I thought that it would be easier. It's just more convenient for me. I may write this plugin. – dzervas Dec 29 '12 at 10:11
  • Do you mind explaining your reasoning? Just curiosity, really. If it has to do with the free hosting aspect, Heroku might be an easier option that doesn't require a bunch of extra custom configuration. – Dan Dec 29 '12 at 10:21
  • Also, if this answered your question, I'd appreciate you clicking the check box. Thanks! :) – Dan Dec 29 '12 at 10:22
  • It is just easier and better to edit the posts via github. I also have a backup of my posts, in case something breaks. – dzervas Dec 29 '12 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.