[Gelöst] Filter posts by content from multiple lines – custom field
This support ticket is created vor 4 Jahren, 6 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
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.