- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › A-Z list – Filter search results by First letter of Custom Field
Tagged: custom fields, custom post types, Filter by Letters
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?
Have a look at these two threads (the private posts are not relevant):
https://support.searchandfilter.com/forums/topic/a-to-z-filter/
https://support.searchandfilter.com/forums/topic/a-to-z-filter-2/