• Resolved Panos_M

    (@panos_m)


    i have been already created a taxonomy_job_listing_category template to list all jobs from a certain job category. You can see an example here: http://www.jobseeker.gr/job-category/pliroforiki/

    i have also added a custom search form with keyword and location input above the job listings.

    <form method="GET" action="">
            <input type="text"  placeholder="Λέξη κλειδί" id="search_keywords" name="search_keywords"/>
            <input type="text"  placeholder="Τοποθεσία"   id="search_location" name="search_location" />
            <input class="search" type="submit"  value="Αναζήτηση" />
          </form>

    What i want to do is when someone do (ex.) a location search query, returning the results in this category page including also and the job category. I know this could be done with the ajax filters. Any help or advice to start make it work?

    Best REgards,
    Panos

    https://wordpress.org/plugins/wp-job-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Panos_M

    (@panos_m)

    Update info:
    After searching i come to this code:

    <form method="GET" action="">
         <div class="job_category_search_keywords">
    	<input type="text" name="search_keywords" id="job_category_search_keywords" placeholder="Λέξη κλειδί, τίτλος ή εταιρεία" value="<?php echo esc_attr( $keywords ); ?>" />
            <button type="submit" class="job-category">Αναζήτηση</button>
    		<div class="clear"></div>
         </div>
    </form>
            <?php echo do_shortcode('[jobs categories='.get_query_var('job_listing_category').' show_filters="false"]'); ?>

    You can see after the update an ex. http://www.jobseeker.gr/job-category/pliroforiki/

    This is working fine. Two things only. The first is that the search query is not saving after submit button. The second the reset link is missing. I think is has to do with the ajax filters.

    Any help is welcome.

    Thread Starter Panos_M

    (@panos_m)

    Finally update:

    i remove the custom search form and change the show_filters=”true” and now working like a charm. So this topic become about Taxonomy job listing category and default search form
    The Taxonomy job listing category template with search form looks like this:

    <?php
         $taxonomy = get_taxonomy( get_queried_object()->taxonomy );
         $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
         get_header(); ?>
    
         <h1 class="page-title">Θέσεις εργασίας για <?php echo $term->name; ?></h1>
            <div id="content">
    	   <article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
    
                     <?php echo do_shortcode('[jobs categories='.get_query_var('job_listing_category').' show_filters="true"]'); ?>
    
    	   </article>
           </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxonomy job listing category and custom form’ is closed to new replies.