templates - Search button click sends to single-custom_post_type instead staying at the same page

I created a template to display search results based on user selects.The problem is after I click on the search button

I created a template to display search results based on user selects. The problem is after I click on the search button it sends to the single-product(This is a Product custom post type). I also have the single-product template. Can't figure out what is the problem,I choose the destination,type and duration but after button click it sends to the single-product template even though the action attribute is action="".

Can somebody have any idea what is going on?

Thanks in advance!

                    <form method="GET" action="">
                        <select name="destinations" id="destinations" required="">
                            <option value="" selected disabled hidden>Destinations</option>
                            <option value="destination1" selected>Destination 1</option>
                            <option value="destination2">Destination 2</option>
                            <option value="destination3">Destination 3</option>
                            <option value="destination4">Destination 4</option>
                        </select>
                        <select name="type" id="type" required="">
                            <option value="" selected disabled hidden>Type</option>
                            <option value="adventure">Adventure</option>
                            <option value="cultural">Cultural</option>
                            <option value="family">Family with kids</option>
                            <option value="selfguided">Selfguided</option>
                            <option value="selfdriving">Selfdriving</option>
                        </select>
                        <select name="duration" id="duration" required="">
                            <option value="" selected disabled hidden>Duration</option>
                            <option value="daily">Daily tours</option>
                            <option value="weekends">Weekends</option>
                            <option value="longer">Longer</option>
                        </select>
                        <input type="submit" id="search-btn" name="search" value="Search">
                    </form>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745351342a4623850.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信