Hello, I am wanting to create a zip code validation within a form for a subset of zips. I see how I can do this with an array but I would like to have an office manager add and remove zips as the business needs it so I want to create a way for the user to manage zips from within the WP dashboard.
My thought is to create a custom post type and a custom field. Custom Post Type will be active zips and include a title which will be the city and a custom field, zip code.
Is there a way for me to validate that the zip code entered by a user on a form is within the current active zip codes from that custom post type?