Alphabet filter for last name


I’m trying to filter my professionals directory by last name using ajax. Right now I have other filters working using custom taxonomies and a drop down menu, but am having a hard time finding documentation online regarding filtering by last name. I see post about sorting by last name, but I want this to filter, so when you click “A”, only people with last names starting with “A” pop up.

Can someone point me in the right direction? Do I need to create a new custom taxonomy, or is there code where I can filter using the title already input as their name? Ideally, I’d like to have either an alphabet bar a-z, or use a range like a-d, e-h, etc.

I’m new to coding so if anyone can point me in the right direction to a good tutorial, it would be very helpful.

Thanks in advance.

, , Kathleen Haynes 4 years 2020-05-26T10:10:22-05:00 0 Answers 85 views 0

Leave an answer