Adding humans.txt to WordPress

humans.txt is a simple but meaningful way for web developers (and other contributors) to take credit for their work and leave a trace of their presence on the web. Given enough time, everything a web developer touches tends to disappear. The ability to preserve any footprint is limited. All our code, our ingenuity, our shameless hacks

Published

Adjustments to WordPress

A collection of useful functions, actions, and other ways to alter WordPress. Change default slug for Posts The default slug is based on the initial Title. If the title is long htis can be very annoying as I personally like short paths and without basic repeating words like the, and, I, etc. This also prevents a slug from

Published

Twitter Archive

Twitter was a really important service for me, but that’s changing quickly and I’m not too sure what comes next. What I do know is that I’ve been on it for 16 years, and that means something to me. As Twitter goes into decline, I wanted a home for my archive. Right now, that archive

Published

Useful mods to the SEO Framework Plugin

I love this plugin, The SEO Framework for WordPress. Aside from SEO benefits and managment options it adds criticial controls for the editorial team in managing the various META tags we rely on for social previews. It has numerous hooks and actions, though most are not documented as such. With that in mind, I’ve found it necessary to

Published

PHP I Keep Returning Too

Nothing earth shattering, just a collection of code fragments and functions I keep re-writing and re-using… Basic compression of CSS for output Common utility functions Basic readable date Adjust JSON_PRETTY_PRINT for JSON Make it use 2 spaces, instead of 4. It is not efficent, but it can be done.

Published

Mining The New Yorker for Haikus

To be fair, these are not properly formatted Haikus but they are fun to extract and search for. This demo focuses on a current article from The New Yorker by pulling one from a JSON feed. However you can easily adapt this to any piece of text. The main PHP file, haiku.php, can be viewed here: https://github.com/donohoe/code-examples/blob/master/haiku-finder/haiku.php There

Published