最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how to make search with two input boxes

programmeradmin3浏览0评论
<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)

  1. 暂无评论