wordpress costum search query to search in costum post types by posta meta values


Staff member
I am creating a travel theme in which I have created some custom posts like Cities, Locations, Destinations and Hotels and to add further information to those custom posts I have created few meta boxes with some meta keys like Address, rent, rooms for hotel and How to reach for cities, Destination, and Location now I am having a search form on the index page to search for hotel based on the custom meta keys for hotel custom posts for which I have to create my own custom search function in function.php and by seeing the wordpress tutorials to create <a href="http://codex.wordpress.org/Function_Reference/get_search_form" rel="nofollow">custom search form</a> I can only have single GET variable "?s=" which display the result in search.php only if it contain some string so is it possible to customise search form in such a way that wee can pass more then one search variable and still can display result on search.php template.I have search every ware and tried different plugins but the only functionality most of them provide to extend the search area of search query which by default searches only in post content and post title and changing it to search in the tags, category and custom post type