Display Time Since Published in WordPress

timesince

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 function that you can add to your functions.php file: /** * Display time since post was published * * @uses human_time_diff() Return time difference in […]

Adding Google+ Meta Tags in WordPress

googleplus sml

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 customize exactly what appears when people share your page on Google+. You can read more about the requirements at https://www.google.com/webmasters/+1/button/. Here is a quick snippet […]

Get Latest Contributors in WordPress

multiple authors

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 this information without querying the database directly but I found a simple alternative using core WP functions. I’m even going to show you how to […]

Gridiculous – Another Responsive Grid Boilerplate

gridiculous sml

I know, I know. There are already quite a few responsive grid boilerplates out there. But they didn’t do exactly what I needed so I decided to create my own. I just launched the site today so head on over to https://gridiculo.us to check it out and learn more about it. Here are some of […]

Debug Bar Plugin for WordPress

debugbar sml

I was working on a test site on WordPress.com yesterday and I noticed a Debug button in the admin bar. Clicked on it and some awesome info appeared that was extremely helpful with testing out the theme. Thankfully, the peeps at WP decided to release this tool as a plugin so everyone can take advantage […]

Only Add a Script on iOS Devices

ios only

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. All you need to do is include a little call to the window useragent to test if the browser being used is an iOS browser. […]

Breadcrumbs for WordPress with Twitter Bootstrap

breadcrumbs sml02

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 that would add breadcrumbs to your WordPress theme styled with CSS from Twitter Bootstrap. The following code snippet needs to be added to the functions.php […]

Add Class to All Excerpts in WordPress

paragraph

In WordPress, the post excerpt can be displayed using a function called the_excerpt(). This function has no parameters but it does have some filters which you can hook into. I discussed changing the length and the trailing elipses using filters in my article Quick & Easy Excerpt Mods Coming in WordPress 2.9. Recently, a design […]

Creating CSS Sprites with SpritePad

spritepad sml

One of the most important steps to creating a great website is making sure that it’s optimized. And a great way to do just that is to gather all of your images together into one CSS sprite. That way, only one HTTP request is needed to fetch all of your images which in turn will […]

Redirect After Adding a New User in WordPress

userredirect

Since the release of WordPress 3.3, I noticed something that was overlooked when adding a new user in the wp-admin. Before, adding a new user would redirect to a list view after the user was created that only included the new user. Now it redirects back to the full user list, though it’s actually trying […]