Forum Replies Created

Viewing 1 replies (of 1 total)
  • justingiesbrecht

    (@justingiesbrecht)

    I used a custom search form on the home page.

    function search_form_func( $atts ){
    $form = ‘<form method=”GET” action=”/jobs/” class=”searchform”>
    <div class=”row”>
    <div class=”col-sm-1″></div>
    <div class=”col-sm-4″>
    <input type=”text” id=”search_keywords” name=”search_keywords” placeholder=”Title or keyword” />
    </div>
    <div class=”col-sm-4″>
    <input type=”text” id=”search_location” name=”search_location” placeholder=”Location” />
    </div>
    <div class=”col-sm-2″>
    <input type=”submit” value=”Search” />
    </div>
    <div class=”col-sm-1″></div>
    </div>
    </form>’;

    return $form;
    }
    add_shortcode( ‘search_form’, ‘search_form_func’ );

    and then on the ‘jobs’ page, setup the shortcode [jobs]

Viewing 1 replies (of 1 total)