Custom search form not working
-
Hi!
I based my custom search form on the tutorial here: https://wpjobmanager.com/document/tutorial-creating-custom-job-search-form/
But its not filtering the jobs according to the keywords, its just displaying all jobs.
<form role="search" class="search-box" action="<?php bloginfo('url') ?>/jobs" id="" method="get"> <label for="keywords">Keywords <input type="text" name="search_keywords" value="" id="search_keywords" /> </label> <label for="keywords">Location <input type="text" name="search_location" id="search_location" /> </label> <input class="button large" type="submit" value="Search jobs" id="" /> </form>
The URL I get after filling the form and clicking on Search is: https://localhost:8888/wordpress/jobs/?search_keywords=admin&search_location=singapore
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom search form not working’ is closed to new replies.