2017

Back to Top ↑

2015

New plugin: Seeder

It’s nice to pre-populate terms, content or have the ability to only OCCASIONALLY run actions.

~1 min read

Fail Early, Fail Often

Make your code simpler to read and simpler to debug by breaking apart your conditional statements and exiting the function whenever possible.

~1 min read

Developing With Composer

Did you know you can not only use Composer to manage dependencies, but actually develop a package alongside your dependencies?

~1 min read
Back to Top ↑

2014

Testing a Transient Locking Mechanism with Siege

When working with caching strategies, it’s important to step through your invalidation strategies. Namely, thinking through at what point does the data that you’re caching get regenerated, how does it get regenerated and who is regenerating it. It could be regenerated any time a new post is published, on a save_post hook by an author or admin OR it might need to be regenerated every 15 minutes by anyone hitting the front page.

1 min read

Git Bisect

One of the lowest hanging fruits to learn is how to fix code regressions quickly and easily with git bisect.

1 min read
Back to Top ↑

2013

HTTP Error on Image Upload [RESOLVED]

This was a fun little issue to come across - I’ve been using Nginx as my local development server and so far have had few complications, however anytime I went to upload an image I would get a very vague HTTP Error from WordPress.

~1 min read

Full listing of all WordPress functions

Because I’m a huge nerd and my google search results failed to bring up anything resembling a true listing, I thought I would throw together a little curl, grep and sed magic.

~1 min read
Back to Top ↑

2012

Grand Rapids slides!

Here are my slides from my talk on WordPress and Version Control from WordCamp Grand Rapids 2012 August 18th.

~1 min read

Incremental Array Changes

Something that I’ve come across recently as I start to build dynamic queries is changing the arguments array ever so slightly.

2 min read
Back to Top ↑

2011

WordCamp Chicago 2011

So I just got back home from the first day of Chicago’s WordCamp 2011 held at the lovely Depaul University in downtown Chicago. Man, what a great experience - I just love the inspiration and the idea sharing that goes on at these conferences.

~1 min read

Adding a redirect link from a post (or page)

I just had a client request that for his home page posts that were being displayed, have them link instead to a permanent page. The type of content that they were linking to was longer term and the posts that were being displayed were created just as excerpts.

1 min read

get_template_part and Custom Templates

In building the Centegra physician directory back in WordPress 3.0, there was no real way to use WordPress to display out a listing or archive of your custom posts. The temporary workaround solution was a little plugin I found called Simple Custom Post Type Archives’. It worked well and all I had to do was create a file in the theme’s directory in the format type-custompostslug.php.

1 min read

Displaying a custom header based on URL

So I recently ran across a situation on Centegra’s website where I had set up our header image to show an image based on the section or area it’s in. This was working fine utilizing a custom get_ID_by_slug('slug-of-post') function I built to get the post ID.

1 min read
Back to Top ↑