Increase WordPress performance on IIS
I noticed that the Time To First Byte (TTFB) of my website was taking way too long. First I thought it should be resolved by caching, but I noticed that it couldn’t be the caching, because TTFB kept being pretty high. After some research I found the culprit: IPv6 with the MySQL driver.
How to create ‘edit tag’ and ‘edit category’ buttons?
This small code snippet creates edit buttons for your category and tag pages. Adding edit buttons to your theme will greatly improve the usability for the end user.
Serving SASS files for WordPress theme on IIS
I love SASS. What’s not to love? Well… it can’t be served directly by the web server like CSS. It needs to be pre-compiled before it is served. Fortunately there is a PHP SASS compiler that can be used to make PHP compile and serve SASS. I’m using an IIS installation, so I’ll be explaining how it can be done on a Windows machine.
How to scrape a photo from a Twitter Photo URL using PHP
After explaining how to scrape a photo from a Twitter Photo URL using C# (ASP.Net) I decided to port the script PHP so I could use it on WordPress. I ended up using CURL and a regular expression to do the trick.