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.…
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.…
When you upload something into WordPress using the Media Uploader, you can include information such as a caption or a description. If you wanted to include something else, you would…
If you’ve included any social buttons on your site, such as the Facebook like button, you can usually see how many people have clicked on it. It’s all done through…
When I first started putting out Premium themes for WordPress, I create a custom excerpt function that would trim your post content to a certain number of words. Today, I…
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…
This is just a little snippet I discovered in the WordPress codex that allows your to display the time since your post was published. I wrote it into a little…
If you’ve decided to include a Google+ button on your WordPress site, it’s also suggested that you add a few new meta tags to your header so that you can…
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…
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.…
I’m not too sure if breadcrumbs are still popular when it comes to modern websites but I find them pretty useful when navigating around. I put together a simple function…