Support » Plugin: WP Job Manager » custom job search

  • Resolved rohitkalra

    (@rohitkalra)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Morrison

    (@jakeom)

    Hi there!

    Do you have a publicly accessible link? As the tutorial mentions, you cannot paste this simply into the WordPress editor. You need to use a custom template.

    For YOUR_JOBS_PAGE_URL, by default this would be /jobs. If so, you would use https://example.com/jobs for that (with example.com replaced with your domain).

    Jake

    Thread Starter rohitkalra

    (@rohitkalra)

    Thanks for your response, I want to show a custom job search in home page .I tried with the elementor I edit a page with elementor and pasted a shortcode mentioned above . what’s the custom template means here ?

    Thread Starter rohitkalra

    (@rohitkalra)

    finally, i added custom search option

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom job search’ is closed to new replies.