September 29, 2021

Ordering WordPress posts by multiple custom fields

Recently I had to order a custom post type archive page by two different custom fields (set up via ACF). In this instance the point was to order by last name and then first name on a staff listing page. Took a little digging to figure out how to do this exactly, helped by John Huebner on the ACF forums. I generally use the pre_get_posts action to alter these queries. I ended up with this code So the key is to create a meta_query array that has named values. In this instance all I wanted to know is if the…

December 3, 2014

Make WordPress more like ExpressionEngine

The two CMS tools I use most often are WordPress and ExpressionEngine. They both have their pros and cons, but with WordPress being vastly more popular, I am constantly trying to figure out ways to bring some of the great ExpressionEngine features into WordPress.

January 9, 2014

Simple ExpressionEngine Stash Parse Order

Stash is a great addition to the ExpressionEngine toolkit, but sometimes the parse order can get a little confusing. One great thing about Stash is the ability to set variables at the top of a template that can be used later on in your code. This allows you to keep a nice separation between the data and the template itself.

June 15, 2012

ExpressionEngine Pagination with Structure and Zoo Triggers

Using Structure with ExpressionEngine is one of the most client-friendly things you can do for your EE sites. It allows you to set up a nice tree view of your site content, complete with drag & drop, page additions, and a slew of nice display functions for the front end.

May 18, 2012

ExpressionEngine config file

One of the biggest takeaways from the EECI 2011 Conference in Brooklyn for me was the use of a config.php file in ExpressionEngine builds. Using a config.php file allows you to control the numerous configuration options in ExpressionEngine from a single text file. This allows for quick and easy updates, instant provisioning of a new site install, and easy movement from server to server.

November 10, 2011

Apache Query String URL to SEO Friendly URL

On one of my current migration projects. I need to rewrite a bunch of clunky old dynamic query string URLs to nice clean search engine friend URLs. Took a bit of digging through Apache documentation, but here it is.

November 8, 2010

Gmail + iPhone + Apple Mail

For a while now I’ve been using several different Gmail/Google Apps accounts with Apple Mail and the iPhone. There are an abundance of guides out there describing the best way to integrate everything so you have the same user experience in webmail, desktop, and mobile. I’ve tried a bunch of these but they all seem to fall short of doing things how they should.