Forums Forums Search & Filter Pro A-Z list – Filter search results by First letter of Custom Field

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #185788

    Hi all,

    I’m hopeful someone can help with this. I have a simple WP_Query that displays results for a custom post type.

    I’m using Search and Filter Pro to filter this post type by various Custom Fields.

    However, I also need to display an A-Z link list, and on click, the results filter based on the first letter of any values in that Custom Field. Basically search by surname, but alphabetically by a single letter.

    So It would display:

    A | B | C | D | E | F …. etc.

    You click “B”… It then filters the results for any posts with the surname field (A custom field) that start with B…

    Is this possible with S&F?

    Trevor
    #185793
    Trevor
    #185795
    This reply has been marked as private.
    Anonymous
    #185800

    Thanks Trevor, I realised that was the best approach and already implemented =)

Viewing 4 posts - 1 through 4 (of 4 total)