Piratizing your blog

Thanks to Dougal Campbell for writing a Pirate filter on his site. I copied the code and put it into a Smarty plugin. It’s available here for everyone on to use as follows:

  1. Open the Template Editor of your blog and bring up the “Posting” template.
  2. Look for the {$the_content} variable in there.
  3. You have to pass that variable to the pirate function: {pirate content=$the_content}. If you’re using the highlightsearch modifier, then use this code instead: {pirate content=$the_content|highlightsearch}.
  4. Save the template and reload your blog. If it doesn’t update, then click on the “Refresh Site” link in the backend.

Oh, of course, it’ll only work today, as it’s Talk Like a Pirate Day!
UF has a special Pirate Talk Day feature today! 🙂

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

2 replies on “Piratizing your blog”

Leave a Reply