[Résolu] Filter posts by content from multiple lines – custom field
This support ticket is created Il y a 4 années et 6 mois. 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
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.