On our home page we have 4 drop down menus that route the user to the appropriate search results page. However, it seems that the pagination will not work. However, the pagination does work if you use the filters on the search / search results page (hidden link). Just not if you access it from the "external" drop down menus from the home page (hidden link).
Here is an example of the code we are using on the home page for one of the drop down menus.
<!-- Begin Form -->
<form id="product-category-select" action="<?php echo esc_url( home_url( '/search-results/' ) ); ?>" method="get">
<?php
$args = array(
'taxonomy' => 'clinical-concern',
'name' => 'wpv-clinical-concern',
'show_option_none' => 'Select Impairment:',
'value_field' => 'slug',
'hierarchical' => 1,
'orderby' => 'NAME',
'class' => 'form-control',
);
wp_dropdown_categories( $args );
?>
<input type="submit" name="submit" value="Search" class="btn btn-primary btn-sm" />
</form>
<!-- End Form -->
I have noticed that once you submit the form above, the URL becomes...
hidden link
However, if I remove "&submit=Search" off of the URL string in the browser, the pagination works properly.
Any ideas?
Thanks a bunch!
Chris
Sorry guys... I switched the submit buttons from <input> to <button> and everything seems to function correctly now.