Sorting the Directory Results by a User Meta Key

The Member Directory and Profile Pages Add On lets you enhance your membership site with a public or members-only searchable directory.

This code recipe makes it possible to order (sort) your member directory by custom user meta field, so you can organize things like:

  • Departments of an organization
  • Chapters of a club (regional chapters, for example)
  • Professional groups by trade or affiliation

This content requires a premium membership plan.