Skip to main content
  1. All Posts/


Tools Open Source Sync WordPress


A Python application to sync Gists with WordPress.
Example :



  1. Clone or download this repository.
  2. Rename the .setting.example file to .setting and configure the variables.Example:
  1. Optionally you can add a GITHUB_ACCESS_TOKEN (for higher rate limits etc.) and a WORDPRESS_CATEGORY if you want to sync content with a particular category in your blog.
  2. In the description of the gists you want to sync, add #gistblog.
  3. You can additionally add other hashtags to your description, those will be parsed over to WordPress as tags for the post.
  4. In your wordpress header, link the CSS required to correctly highlight/display code snippets and content.
<link crossorigin="anonymous" href="" integrity="sha256-MeNpzNKyOh7M3oPwPvNur/8fe5Al9gQsysM6eRV1PeI=" media="all" rel="stylesheet" />
<link crossorigin="anonymous" href="" integrity="sha256-9SyMaH+LdZ536U42Qe2xxfSdbo4HOO8WKmY2ExZWbP8=" media="all" rel="stylesheet" />
  1. Run python


The biggest downside currently is that the application needs to be manually invoked everytime changes need to be synced. (This is because webhooks/events are not available on gists.)
In the future, this app could potentially be compiled and bundled as a wordpress plugin, which can then be run as cron job to sync posts and gists.

Function Reference


The class that hold data collected from gists, to be put into WordPress post objects to be posted.

  • updated_at is used to check if the latest iteration of the gist has been posted to WordPress.

The value is stored in the `custom_field` in WordPress.

[Custom Fields Documentation](


  • item holds the entire gist json payload fetched from