ternary

Using the Ternary Operator in PHP

June 28, 2012

It took me a while to actually figure out the name of this type of operator since trying to search “PHP” and “question mark” didn’t really result in anything useful.…

betterpages

A Better wp_link_pages() for WordPress

May 3, 2012

If you’ve written a long post, WordPress provides the <!–nextpage–> quicktag so you can divide it into multiple pages. All you need to do is make sure that the theme…

multiple_authors

Get Latest Contributors in WordPress

April 24, 2012

If you have a WordPress blog with multiple contributors, you might want to display a list of which ones have been recently active. There isn’t a direct way to gather…

ios_only

Only Add a Script on iOS Devices

April 15, 2012

I was working on a site that required a small jQuery function to load only if the site was opened on an iOS device, ie. the iPad, iPhone or iPod.…