we have custom posts with several custom fields. One of these fields is a multiple line field, where we add several postal codes/zip codes. One per line like in Woocommerce shipping fields. We would like to filter by the content from this multiple lines. How can we add a filter like:
"Show all results where the inputed search term starts with the same word like in the multiple lines box."
So the thing is, that we have complex post codes in the UK. Eg.: "EC2A 3AY".
Important is the first part of the post code "EC2A" This part is set in the multiple line field. Each row one starting term of a post code.
It is important that when a user is searching for his post code, lets say "EC2A 123A" and we have "EC2A" in the custom field, it should show the custom post.