Support » Plugin: Ultimate WP Query Search Filter » Default query result when page is loaded the first time

  • Hi there! The plugin is really good, specially the Ajax functionality. But I was trying to figure out how to display a default query result when we enter the page. The standard behavior leaves the div empty before we push the button and search something. But I need some default query content to be displayed before we execute the search. Anyone has any idea on how to achieve this?

    Cheers.

    https://wordpress.org/plugins/ultimate-wp-query-search-filter/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TC.K

    (@wp_dummy)

    You can create a custom template or adding this script to your footer file.

    <script type=”text/javascript”>
    jQuery(document).ready(function($) {
    function loadAjax(){
    var obj = $(“[id^=uwpqsffrom_]”);
    process_data(obj);
    return false;
    }
    window.onload = loadAjax;});
    </script>
    awesomeflyingdude

    (@awesomeflyingdude)

    Thanks TC.K! That works, but you gotta change the FANCY QUOTES! ha!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default query result when page is loaded the first time’ is closed to new replies.