December 6, 2011

Automate posting in Wordpress from Calepin using IFTTT

When I first saw IFTT I knew that it had a lot of potential and that it could simplify some repetitive and time consuming tasks, such as updating different blogs or status in different social networks.

I've found also recently a free hosted blog that watches your Markdown files stored in Dropbox and publish them. It's called Calepin, it's a very convenient and easy to use. Just edit your posts using Markdown and store them in Dropbox and click publish.

So let's combine the simplicity of Calepin and the power of IFTT to update your Wordpress blog in some easy steps.

  1. Create an account in IFTTT and configure at least your Wordpress channel (you have to fill in your blog URL, username and password - in my case the posts in Calepin will go to my blog alberto-villa.com).
  2. Create an account in Calepin.co
  3. Configure Wordpress to allow publish through Atom feeds

    • Go to your Dashboard in Wordpress
    • Then go to Settings
    • Go to Writing
    • Enable the checkbox in Atom Publishing Protocol
  4. Create a new rule in IFTT to automate posting from Calepin to Wordpress

    • You just have to follow their "If This then That" procedure
    • First, you have to select the This - Choose trigger channel. In this case, you have to select Feed
    • Select New feed item
    • Complete the Feed URL, in my case, http://alberto.calepin.co/feeds/all.atom.xml (you have to change alberto with your username.
    • Then click on Create trigger
    • Select the That - Choose action channel. In this case, Wordpress
    • Choose Create a post action

Now you could just press Create action but I would recommend removing the from {{FeedTitle}} {{EntryUrl}} part in the Body as the way it's handled in Calepin doesn't look nice.

That's all but take into account that the tasks are checked once every 15 minutes therefore it could take some time before updating your Wordpress blog.