custom job search
-
I want to display custom job search on homepage and I tried with the mentioned code and replaced YOUR_JOBS_PAGE_URL with ../job listing page name but it’s not actually searching it just redirect to the job listing page
Suppose I search keyword finance and enter some location then it just redirect to job listing which shows all job listing not what i searched. Also categories is not showing and in place of categories it shows like this ?>
code which i used
<form method=”GET” action=”YOUR_JOBS_PAGE_URL”>
<p>
<label for=”keywords”>Keywords</label>
<input type=”text” id=”search_keywords” name=”search_keywords” />
</p>
<p>
<label for=”keywords”>Location</label>
<input type=”text” id=”search_location” name=”search_location” />
</p>
<p>
<label for=”search_category”>Category</label>
<select id=”search_category” name=”search_category”>
<?php foreach ( get_job_listing_categories() as $cat ) : ?>
<option value=”<?php echo esc_attr( $cat->term_id ); ?>”><?php echo esc_html( $cat->name ); ?></option>
<?php endforeach; ?>
</select>
</p>
<p>
<input type=”submit” value=”Search” />
</p>
</form>
please help me so that i can display a custom search which redirect to listing page but shows that results only which i searched not whole job listing page . I am hereby not talking about search bar on listing page in that there is no issues
- The topic ‘custom job search’ is closed to new replies.