Migrating WordPress Multisite from Media Temple to SiteGround

Posted on

A few years ago, I wrote about domain mapping using WordPress Multisite on Media Temple. This year, I’ve been consolidating all of my hosted websites to a single SiteGround account and the very Multisite instance I wrote about needed to be moved over. I had been avoiding it but the time had come, especially since I was getting knocked for $50/month just for those sites. Here’s how I did it.
Continue reading “Migrating WordPress Multisite from Media Temple to SiteGround”

Deleting 3 Million Spam Comments from a WordPress Database

Posted on

Over at the Crowd Favorite blog, I wrote up a post about an interesting problem I solved recently. I laid out everything you need to know there, but it involves downloading a HUGE database and putting WP-CLI to good use. If you haven’t used it before and you do development with WordPress, it’s super valuable. Anyway, check out the post – it’s a good one!

Deleting 3 Million Spam Comments from Your WordPress Database

WP Engine Easter Egg Saves You 20%

Posted on

I got a hot tip in my inbox today from one of my favorite hosting companies, WP Engine. For a limited time, when you visit their website and put in the Konami Code (below), you’ll save 20% on your purchase. To activate this discount, enter the following code using arrows and letters on their keyboard when viewing their website:

Cheat Code: Up, up, down, down, left, right, left, right, b, a 

Continue reading “WP Engine Easter Egg Saves You 20%”

Pivoting WP in One Month

Posted on

Do you know the story of Pixar? It’s a really interesting one that I strongly recommend you read all about in Creativity Inc. Here’s the gist: Pixar started off as a piece of hardware inside LucasFilms, and the team was tasked with pushing the technological envelope for live-action movies. When Lucas had to sell off that division, it was purchased by Steve Jobs and they tried for a number of years to sell hardware before pivoting and making their first featured length animated movie, Toy Story. It took about 20 years, but Pixar found its true calling. While I am not at all comparing myself to Pixar, I am taking an important less from them: you may not find success in your first iteration.

Continue reading “Pivoting WP in One Month”

WordPress Helper Functions for Detecting IE

Posted on

The other day I was working on a problem where I wanted to check if a website was using a specific browser (in this case IE) and version (in this case 9 or below). I came up with 2 functions that would serve an a nice, reusable check for both. These can also be extended to check for other browsers or versions, or even accept custom regular expressions.

Continue reading “WordPress Helper Functions for Detecting IE”

WordPress Database Encoding & the Case of Disappearing Widgets

Posted on

Recently I was updating the widgets on my homepage to promote the new WP in One Month. I decided to do so with the logo and a caption, making Jetpack’s Image Widget the perfect candidate. I uploaded the logo, added a title, then copy and pasted the text from the website’s ‘Jumbotron’ area for the caption. I clicked ‘Save’ and something strange happened: all of the Image Widgets, everywhere on my site, disappeared. I tried to do the same thing with a Text Widget, thinking maybe there’s a bug in Jetpack’s Image Widget or it doesn’t allow certain text/markup. After going through the same steps and clicking ‘Save’ every Text Widget on the site disappeared. I decided (really, was forced) to do some investigating.

Continue reading “WordPress Database Encoding & the Case of Disappearing Widgets”