how to make search with two input boxes

Question
<input type="search" id="<?php echo esc_attr( $unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />

Default search have only one input field search with name=”s” but I want to add another input field so user can input there age or pincode manually and result will be relative.

<input type="search" id="<?php echo esc_attr( $unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />

<input type="search" id="id" class="search-field" placeholder="age" value="<?php echo get_search_query(); ?>" name="s2" />

now user can enter there name age in both input field.

0
Atif Aqeel 2 years 2020-01-08T08:40:21-05:00 0 Answers 86 views 0

Leave an answer

Browse
Browse