Resorting a WordPress Query Using usort

Resorting a WordPress Query Using usort
Posted by on Jan 6, 2014

WordPress includes some great ways to order your post, page or custom content as it is stored in the database.  But, what if we want to change the content a little bit and then resort it?  Let’s say we have a staff post type where the person’s name is in the post title.  Now, we want to build a directory of employees where they are ordered by last name. We can do something like this with the usort, explode and comparison functions in PHP.

Read More

Today in Art | PHP, Tutorials, WordPress