30th May 2019

I wrote recently about how I’m automating my daily journal, and it mainly focussed around how I started the writing, as the publishing was quite a manual process.

However, I’ve now managed to automate the publishing part of my writing process. Which I’ve been using for every blog post since, not just my daily journal.

I started off with Federico Viticci’s Publish to WordPress shortcut1, which he posted on his incredible Behind the Tablet article. But I had to make a few changes to make it work with the way I’ve configured my blog.

Here’s Federico’s description of his shortcut:

Publish a Markdown post to WordPress via the Shortcuts action extension. The shortcut can extract the h1 Markdown header from a post and use it as title. Optionally, you can publish both standard and “linked list” post types by adding a custom field supported by your WordPress installation.

The changes I made were:

  • Changing the Format parameter of the ‘Post to WordPress’ action to Ask When Run. This way I can alter between standard and link type posts. The shortcut already handled linked posts so it could extract a URL and add that as a custom field on a post. But my theme styles linked posts slightly differently, and it depends on the post format to do that.
  • I also changed the Publish Date parameter to Ask When Run as sometimes I like to schedule posts. Or if I’m publishing my journal, and I’ve slightly run into the next day, I like to make sure it’s published on the correct date.
  • One section I removed was the file saving, as I don’t particularly need another copy of the final results. I like to think of my blog as the place for canonical copies.
  • The last action was to open MacStories in the browser, so of course, I changed that to the url of this blog. So I can quickly check out the live version.

In essence, it’s a relatively simple shortcut, in that it takes text and publishes it here on my blog. However it takes care of so much of the annoying parts of the publishing process, such as setting the categories, tags, post types, extracting links for sources, and still more. I guess that’s the perfect case for automation.

One last thing I have to call out, is the natural language parsing when entering a publish date for a post. When using the web interface for WordPress, I found it really irritating to use the date/time picker. But now I can write something like “tomorrow at noon” or “yesterday at 23:00”, and it just understands it perfectly.

I’m not sure if this will directly benefit anyone, but I hope it at least shows some benefits of using automation when publishing to a blog. And also, that it’s very beneficial to keep checking out the many Shortcuts that people like Federico are sharing.

Download Federico’s “Publish to WordPress” shortcut.

Download my modified “Publish to WordPress” shortcut.


  1. The shortcut also includes the Title Case action from my app, Text Case. Which I (with a massive bias) find very helpful.