Blog

Development notes.

Practical fixes from WordPress builds and website migrations.

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 […]