Searching Multiple Fields - Only Returning Last Field

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 29, 2016   (RSS)

Hi there,

Having an issue with searching through multiple fields. Seems like only the last field is being used in the search because when I added a new field called keywords (used for misspellings) to the end I find that only that field brings back results:

name="yacht_title_query,meta_description_query,intro_query,yacht_name_query,keywords_query"

Only content in the keyword field is returned. Example search where there is content in "keyword" field:

http://www.luxurychartergroup.com/search.php?destinations=&type=&yacht_title_query%2Cmeta_description_query%2Cintro_query%2Cyacht_name_query%2Ckeywords_query=worlds+end

Example search with no results where keyword is blank but should pick up the yacht name from "yacht_name":

http://www.luxurychartergroup.com/search.php?destinations=&type=&yacht_title_query%2Cmeta_description_query%2Cintro_query%2Cyacht_name_query%2Ckeywords_query=bliss

I have attached the search file as well. 

Attachments:

search.php 17K

Hi Ross, that's great, all working, thanks a million :)