I'll start off by saying that 2014 has been the best year of my life in so many ways. When I sat down to think back on all that has happened, there are three dates this year that really stick out to me.
The WordPress Transients API is a super useful way to temporarily store cached data. It was introduced in WordPress 2.8 (all the way back in 2009, so it's pretty much an antique or something now), but I've only recently become more aware of it and started using it heavily in production.
Todays snippet is a quick and easy one. While developing a new site for the agency where I work, I decided to display a random set of gifs on the 404 page. There are 7 images and I only wanted to display one per page load.
Like what you've read?
If so, consider joining literally tens of other developers who receive regular tips and tutorials right in their inbox. No spam. Ever.