WordPress - Display hook action priority in the dashboard


List of actions with various priorities.

If your WordPress site has lots of plugins, it's sometimes difficult to keep track of what is manipulating your content. Ever wondered what priority all your various actions and filters have? This is a widget which will show you which actions are registered to your blog's hooks, and their priority order. It looks like this: […]

Continue reading →

Inline CSS - The Link "Cheat"


The HTML5 Logo.

I am a bear of very little brains sometimes. I had a site which, for various boring reasons, was printing a <style> element in the middle of the HTML's body. Because <style> is a metadata element, it should only appear within the <head> element. This is OK: <!doctype html> <html> <head> <style> a { color: […]

Continue reading →

What programming language is in this <code> block?


Screenshot of the Schema.org site showing the technical information about the metadata.

I'm a little bit obsessed with the idea of Semantic markup. I want the words that I write to be understood my humans and machines. Imagine this piece of code: print( "Hello, world!" ) Is that code example written in Python? C++? Basic? Go? Perhaps you're familiar enough with every programming language to tell - […]

Continue reading →

Liberate your Markdown posts from JetPack in WordPress


JetPack Markdown switched off.

A scrap of code which I hope helps you. Problem You installed the WordPress JetPack plugin and wrote all your blog posts in Markdown. Now you want to remove JetPack or replace it with a better Markdown parser. You turn off JetPack's "Write posts or pages in plain-text Markdown syntax". You click edit on a […]

Continue reading →

Replace Twitter Embeds with Semantic HTML


Tweet from me in 2009. "Ah. I appear to have spent the majority of the night playing World Of Goo What an addictive little game."

I logged into Twitter using a fresh account last week. No followers, no preferences set. The default experience was an unending slurry of racism and porn. I don't care to use Twitter any more. Whatever good that was there is now drowned in a cess-pit of violent filth. I still have a lot of Tweets […]

Continue reading →

Review: FlexiSpot C7 Air Chair


here is not a screwhole.

Sitting down, eh? What's that all about? You bend your knees and just hope something is there to catch you as you fall! So, the good folks at Flexispot have sent me their latest chair to review. Just like most modern office chairs, it is fully adjustable. But, rather than having a a set of […]

Continue reading →

Theatre Review: A Night with Janis Joplin - The Musical


Promo image for Janis Joplin featuring the singer in a blaze of colour.

Unless someone invents time travel, this is probably the closest you'll get to experiencing Janis Joplin live on stage. Jukebox musicals have a variety of viable routes to success. You either do a Mama Mia / We Will Rock You and just spin a weak story around the tunes - or you do a straight […]

Continue reading →

Book Review: The Intergalactic Omniglot - Jenni Fleetwood (1988)


Paperback book cover. A UFO rises behind a young man. The Boy is holding what looks like a foldable Gameboy.

Turns out, you can just relive your childhood for £2.99 on eBay! I was exactly the right age when this book came out, and I was the perfect target audience. A boy in a sleepy suburb finds a mysterious device which allows him to understand every language. Could it be… Aliens?!?!?! It's all biking to […]

Continue reading →

Replacing Twitter Embeds With Images


Screenshot from Twitter. 2017-03-02T22:27:56.000Z. Terence Eden is on Mastodon (@edent). THREAD! This is what Twitter threads *actually* look like. They're not linear conversations, they're branching organic trees. https://t.co/gr4b0cCV4v

I logged into Twitter using a fresh account last week. No followers, no preferences set. The default experience was an unending slurry of racism and porn. I don't care to use Twitter any more. Whatever good that was there is now drowned in a cess-pit of violent filth. I still have a lot of Tweets […]

Continue reading →

Working around an old and buggy HTML Tidy in PHP


The PHP logo.

Dan Q very kindly shared his script to make WordPress do good HTML. But I couldn't get it working. Looking at the HTML it was spitting out, the meta generator said it was HTML Tidy version 5.6.0. That's quite old! I confirmed this by running: echo tidy_get_release(); Which spat out 2017/11/25. Aha! There are a […]

Continue reading →