This search gives two results because the keyword (ref-no) is similar to another. hidden link
The first result on that page has ref.no PMA-ATE36-1 and because of that it is also visible in the search results. Eventhoug we don't want to show it. It should only appear if you search for PMA-ATE36-1.
We've added those REF. Numbers in the content area of each page and also as taxonomies.
I guess WP only search in title and body but how can we make the search to be exact. and not show similar posts?
Hello. Thank you for contacting the Toolset support.
Well - I checked the problem URL you shared but I do not see all the filters which displayed with the screenshot you shared. I can only see the "Choose your region:" filter.
Could you please tell me which field you would like to work as the exact match - and you want to apply the exact match against post title and post body search?
If possible, please share access details, so I can check how you setup your filters.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
If you visit this page and first select Denmark as region: hidden link
Then add the REF number in the "Product number REF#"-field (se previous screenshot for correct )
So basically I want to make this field to search for the exact phrase used in that field:
[wpml-string context="wpv-views"]Product Number - REF:[/wpml-string]<br /> [wpv-filter-search-box]
If you visit this page and first select Denmark as region: hidden link
Then add the REF number (please, see previous screenshot for correct ref# to use) in the "Product number REF#"-field
So basically I want to make this field to search for the exact phrase used in that field:
[wpml-string context="wpv-views"]Product Number - REF:[/wpml-string]<br /> [wpv-filter-search-box]
Well, actually I solved it pretty easy.
Since I have the ref numbers in the post_content area all I had to do was to change your code from referring to posts.post_title to posts.post_content and then everything work as it should 🙂