• 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,

Viewing 1 replies (of 1 total)
  • Thread Starter santoshchaurasia

    (@santoshchaurasia)

    Update on above ticket:
    I tried to use ‘WP Job Tags’ plugin also for this, but seem there are few restrictions due to which I do not feel its suitable for what I want-
    1) Doesn’t allow me to select multiple tags on job searching page. Is it possible to have a Job Category like input box with multiple selection of tags?

    2) It doesn’t support using custom taxonomy (I think it uses its internally created taxonomy ‘job_lisitng_tag’ ) for job filtering and I am not able to change that.

    I am ok with using WP Job Tags also, if I can use custom taxonomy in it and allow me to search with multiple tags.
    Anyone experienced who is having any clue about this can guide me please..please ? I am still new to WordPress and slowly trying to learn the things here. May be, I am missing some minor details here.

    Thanks,
    Santosh

Viewing 1 replies (of 1 total)
  • The topic ‘filtering job based on new Taxonomy’ is closed to new replies.