Call Us : +1-678-551-2452
+91 77381-86899

Show Search Results on Page Load in Ultimate WP Query search filter form without clicking on search button

I was using the plugin https://wordpress.org/support/plugin/ultimate-wp-query-search-filter to filter posts based on a form’s inputs. It worked perfectly on the search button click, but then i wanted to display all the search results on page load without clicking on search button.

The solution that worked for me:

Add below script at the end of the theme’s  footer.php file just before </html> element

<script type=”text/javascript”>

jQuery(document).ready(function($) {

function loadAjax(){
var obj = $(“[id^=uwpqsffrom_]”);

process_data(obj);
return false;
}
window.onload = loadAjax;});
</script>

Leave a Reply

Pay with PayPal

Icon Web Solutions Service
Other Amount:
Name:

Testimonials

It has been a great pleasure working with Icon Web Solutions on the development of my digitized logo and website. From the initial phases of web design, the Icon Web Solutions team has been a pleasure to work with
Naren, USA

REQUEST A QUOTE

Request A Quote

Please fill the form to request a quote from us

Name (required)

Email (required)

Phone

Services
 Website Design & Development Logo Design SEO SMO Payment Gateway Integration Others

Any Other Detail

Input Text Shown in Image
captcha