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

    (@wp_dummy)

    Can you provide me the url?

    Thread Starter arunasasidharan

    (@arunasasidharan)

    Sorry for the delayed reply. It worked for me now. That was a div which overlapped.

    Thread Starter arunasasidharan

    (@arunasasidharan)

    I have one more question for you. Does this plugin works in wordpress 4.5 version?

    Plugin Author TC.K

    (@wp_dummy)

    I haven’t got the time to test it. But I think it should be working. You can try it yourself. Or wait for my update.

    This awesome plugin doesn’t seem to be working in 4.5 using Ajax – it works flawlessly with the normal search page.

    Maybe it has something to do with the fact that WP 4.5 is coming with JQuery 1.12.

    Sorry it has nothing to do with jquery – just tried to downgrade to ver. 1.8.3 and still no Ajax working.

    I can’t figure out why it suddenly stopped working cause it worked nicely a week ago.

    Hope you can give my page a look to see if you can figure out why.

    The page is https://www.broenderslevhandel.dk

    Thanks in advance

    Plugin Author TC.K

    (@wp_dummy)

    I didn’t see the search of the url you gave.

    Sorry – it was the site adress – here is the right url:

    https://broenderslevhandel.dk/medlemmer/butikkerfirmaer/

    Plugin Author TC.K

    (@wp_dummy)

    You set the result div as .medlem-item wheres there are plenty of `.medlem-item’ classes in the page.
    You should choose the unique div instead.

    There is only one medlem-item, but a lot of medlem-items – but I have tried to set it to a separate div and it still doesn’t show any results when using ajax – using the regular search function it works perfectly.

    I can’t figure out why it shows result on the regular search, but not by ajax

    Plugin Author TC.K

    (@wp_dummy)

    Did you customize the plugin?
    Can you test it on the default theme?

    Just tested the plugin witj twentysixteen – and it is the same nothing found when using ajax – but normal search no problem.

    Tried a new install of the plugin to test if something had gone wrong – but still the same nothing found with ajax.

    Removed the custom thing I have done to use different post types – still nothing found in ajax – but normal search works perfectly.

    Plugin Author TC.K

    (@wp_dummy)

    Seem there are interrupting in the ajax search. Normally it won’t behave like this unless you have edited some the plugin, mostly you have changed the search query with uwpqsf_result_tempt or uwpqsf_query_args.

    You have mentioned that you do something on the post types, what did you do actually??

    All I have done is added the ajax-search code into my functions.php

    `/**
    * Ajax search from wp query search filter
    */
    add_filter(‘uwpqsf_result_tempt’, ‘customize_output’, ”, 4);
    function customize_output($results , $arg, $id, $getdata ){
    // The Query
    $apiclass = new uwpqsfprocess();
    $query = new WP_Query( $arg );
    ob_start(); $result = ”;
    // The Loop

    if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
    $query->the_post();global $post;
    //check post type for the post
    if(get_post_type() == ‘aktivitet’){ ?>
    <?php
    include(‘template-parts/detsker_search.php’);//include the template for post type named ‘type1’
    ?>
    <?php }
    if(get_post_type() == ‘detsker’){ ?>
    <?php
    include(‘template-parts/detsker_search.php’);//include the template for post type named ‘type1’
    ?>
    <?php }

    if(get_post_type() == ‘medlem’){ ?>
    <?php
    include(‘template-parts/medlemmer_search.php’);//include the template for post type named ‘type1’
    ?>
    <?php }
    }
    echo $apiclass->ajax_pagination($arg[‘paged’],$query->max_num_pages, 4, $id, $getdata);
    } else {
    echo ‘Der blev ikke fundet noget….!’;
    }
    /* Restore original Post Data */
    wp_reset_postdata();

    $results = ob_get_clean();
    return $results;
    }

    And the ajax search have worked – thats why I can’t figure out where it has gone bad:)

    Problem solved – don’t know how – but I deactivated all my plugins and activated them again and now everything works as it should….

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Search Filter not working in Mobile’ is closed to new replies.