Query custom post type by URL parameters

I have a custom post type staff. and a custom field alphabet for posts in that post type. Each staff will be assigned to a letter either A or B … Z based on the first letter of the staff’s name.

On the directory page there will be navigation links A, B, … Z. Is it possible to list all posts with in each letter via URL parameters?

Example for link A to list all staff with name begins with letter A (Adam, Andrew…):

http://example.com/?post_type=staff&meta_key=alphabet&meta_value=A

Read more here:: Query custom post type by URL parameters

Leave a Reply

Your email address will not be published. Required fields are marked *