filtering job based on new Taxonomy
-
Hello,
I am trying to use new filtering criteria for my job searching (similar to exiting job categories filtering). I am using WP Job Manager Field Editor plugin for creating new taxonomy field for my purpose. From Job submission is successfully placed but on searching page, not able to properly see my custom field.
I am taking reference from https://wpjobmanager.com/document/tutorial-adding-a-salary-field-for-jobs/ and the existing Criteria searching in WP Job Manager.
Somehow I am able to see my new custom field but not able to select(or multiselect) it from listing page.Is it something I missed to add yet, may be frond end logic(JavaScript)?
Below code I am trying to hook on:
=================================
add_action( ‘job_manager_job_filters_search_jobs_end’, ‘filter_by_job_amenities_field’ );
//function to add input field on job listing page (for custom field e.g. amenities)
function filter_by_job_amenities_field() // took reference from job_filters.php
{
if ( !is_tax( ‘listing_amenity’ ) && get_terms( [ ‘taxonomy’ => ‘listing_amenity’ ] ) ) : ?>
<div class=”search_amenities”>
<label for=”search_amenities”><?php esc_html_e( ‘Amenity’, ‘wp-job-manager’ ); ?></label>
<?php job_manager_dropdown_amenities( [ ‘taxonomy’ => ‘listing_amenity’, ‘hierarchical’ => 1, ‘name’ => ‘search_amenities’, ‘orderby’ => ‘name’, ‘selected’ => $selected_category, ‘hide_empty’ => true ] ); ?>
</div>
<?php endif;
}
=====================================Any Help is appreciated, as I am stuck on this and need to resolve it asap.
Thanks,
- The topic ‘filtering job based on new Taxonomy’ is closed to new replies.