My blog is running off Wordpress (version 2), which was incredible simple to install.
However, it doesn't come with 'tag' support.
But help was at hand...
MY WORKSHOPMaster Next.js
Everything you need to master universal React with Next.js in a single intense master class. Includes full pass to ffconf, the web developer conf.
Job number 1: get tags working in Wordpress. Job number 2: get tags recognised in the blogging TextMate bundle.
This was pretty simple after a bit of trial and error. After hunting around, installing plugins I didn't want/need/understand, I found: Ultimate Tag Warrior 3.
The install is straight forward and you can start tagging pretty quickly from the web interface.
Luckily the theme that I had chosen* supported UTW out of the box.
Yes, I know, I should really design my own blog layout, but I wanted something quick and dirty running, and this theme, I thought, is actually not bad.
Admittedly I did edit my theme files so that the tags would appear on all the pages, rather than just the single page. I did that by searching for 'Filed' and below was the tag code, then I removed the 'is_single' check.
Tag Support for TextMate
By default Wordpress isn't supposed to support tagging, so there's a bit of fiddle that has to be done.
First stop: xmlrpc.
This is the script that handles the posting on the server side. Basically, it needs to be hacked to support tags.
Rather than explain it myself, a chap called Robin Lu has already written it up.
Ignore the 'ecto' part - it's a blogging software product, but it'll do for our purposes.
The key change you need is mt_keywords to mt_tags.
Tweaking the Blogging Bundle
You'll need to edit the blogging.rb file in the /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/ directory.
Find the following line:
@post['mt_tags'] = @headers['tags'] if @headers['tags']
Then copy it below the
elsif self.mode == 'wp'
This means it will read the tags if the blogging software is Wordpress.
That should be it. You should be able to see my tags working on my Wordpress blog right now.