WordPress.org

Forums

Sort Page List by Last Name
[resolved] Work For Custom Post Types? (4 posts)

  1. Andy Mercer
    Member
    Posted 1 year ago #

    I have several custom post types, and I call a list of each using a custom loop on a template. One type is Employees, and I'd like to sort by last name. Would this plugin work for a custom WP_Query loop, for a custom post type?

    https://wordpress.org/plugins/sort-page-list-by-last-name/

  2. studiohyperset
    Member
    Plugin Author

    Posted 10 months ago #

    If you attempted this, I'd be interested in the result.

  3. Andy Mercer
    Member
    Posted 10 months ago #

    I didn't, I ended up adding a metadata field called lastName. On save, the last work in the Title field is placed in the lastName field and saved, and I use that metadata to sort.

  4. studiohyperset
    Member
    Plugin Author

    Posted 10 months ago #

    Thank you for the update, Andy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sort Page List by Last Name
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic