Skip Navigation

[Resolved] Using a drop down menu is causing pagination not to function properly.

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 1 voice.

Last updated by chrisT-11 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1160680

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

#1160687

Sorry guys... I switched the submit buttons from <input> to <button> and everything seems to function correctly now.