• Hi Guys,

    Im needing to put a custom form on a site with a normal search and 3 dropdown boxes

    Was wondering is there a way to do this where it searches say custom fields?

    Any help would be great.

    Thanks
    Kylie x

Viewing 2 replies - 1 through 2 (of 2 total)
  • Build a custom page and execute the query . . .

    $cat = 'hotels';
    $sortOption = 'star-rating';
    SearchOrder = 'ASC';
    $args = array(
    	'posts_per_page' => 20,
    	'paged' => get_query_var( 'page' ),
    	'category_name' => $cat,
    	'meta_key' => $sortOption,
    	'orderby' => 'meta_value',
    	'order' => $sortOrder
    );
    query_posts($args);

    //the usual if have post . . .

    Thread Starter euphoriawebd

    (@euphoriawebd)

    Thanks for the reply nsathees, bit of a noob with wordpress.

    would i create a form and place it in the searchform.php?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Search Form’ is closed to new replies.