Tutorial

Deleting 3 Million Spam Comments from a WordPress Database

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. …

Deleting 3 Million Spam Comments from a WordPress Database Read More »

WordPress Database Encoding & the Case of Disappearing Widgets

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. …

WordPress Database Encoding & the Case of Disappearing Widgets Read More »

Draw Cherries using HTML5 Canvas

I’m teaching a class on 2D Animation this semester and opted to use web technologies such as HTML5 Canvas, CSS Transitions, and Javascript. In this tutorial we are going to use the canvas element to draw 2 cherries with stems. I’m having my class use CodePen for their assignments, so this tutorial kind of assumes …

Draw Cherries using HTML5 Canvas Read More »

Quick Tip: Use Post or Page Slug as CSS Class in WordPress

I don’t know why, but for some reason, I thought WordPress already included the slug of a post or page in either the function body_class() or post_class(). Doing some work over this weekend I realized that’s not the case, but luckily, it’s very easy to do. The functions body_class() and post_class() serve as a way …

Quick Tip: Use Post or Page Slug as CSS Class in WordPress Read More »

Include a Sidebar with a Shortcode in WordPress

Recently I was faced with a pretty interesting problem where I wanted to have a page that was structured: Content – Widgets – Content. Instead of hacking together some sort of Content – Sidebar – Metadata on the backend, I decided to make sidebar widgets accessible via a shortcode you can use in the WordPress …

Include a Sidebar with a Shortcode in WordPress Read More »

Excerpt from Building WordPress Themes from Scratch

Recently my first book, Building WordPress Themes from Scratch, made its way back onto the market. In this book, I teach you how to use WordPress as well as how to leverage the API to create your own custom themes, plugins, and content types. Here is an excerpt from the book. Enjoy!

Quick Tip: Download an Archive of your Facebook Data

There’s a lot going on on the Internet right now. Websites getting hacked (Blizzard being the most recent), companies doing presumably whatever they want with our data, and the cultivation of a group of people who over-share (this includes yours truly). I’ve written a bit on Facebook and other social media and how I think …

Quick Tip: Download an Archive of your Facebook Data Read More »