Forums Forums Search & Filter Pro Using ajax: fading but not loading results

Tagged: 

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #82531

    Hi,

    I’m finishing up a website using SF pro, but can’t get ajax loading working, am I missing something?

    I’ve currently got a custom post archive file set as the display posts method. The search form is added to this page using a get_template_part(), pointing to a file containing the SF shortcode. The form is nested in a <section>, the results are nested in a different <section>. Results are loaded using the WP loop. Regular non ajax post filtering is working well. However, when I specify ajax and change a taxonomy filter, the page fades but does not update… (I’ve set the ajax container ID to the <section> containing the search results.)

    Can you help me figure out what’s going on?

    I can create a test account if needed.

    Cheers,

    Gijs

    Anonymous
    #82539
    This reply has been marked as private.
    Trevor
    #82543
    This reply has been marked as private.
    Anonymous
    #82547

    Ok, thanks for the quick reply. I will move the site to a domain root location and try again, have to move anyway… Will let you know.

    Anonymous
    #82559
    This reply has been marked as private.
    Trevor
    #82588

    Are you using ‘as an Archive’ display method? If so, what template file are you using? Is it possible to post the contents of that file here (inside ‘code’ tags – the button for these is in the editor toolbar)?

    Anonymous
    #82596
    This reply has been marked as private.
    Anonymous
    #82661

    Ok! I think I got it working. Adding a <div id=”main-container”> around all content, so just after body tag sorted things out. Don’t know why but it works, both on my demo site and copy. Painfully slow ajax updates though. Any way to speed things up?

    Trevor
    #82663

    This MIGHT work. Try editing that file. Find the line:

    <?php get_template_part( 'filters'); ?>

    and change it to two lines like this:

    <?php get_template_part( 'filters'); 
    do_action('search_filter_query_posts', 42); ?>

    42 being the ID number of the form.

    Anonymous
    #82665

    Ha, simultaneous posting… I removed the aforementioned extra containing div and tried your suggestion to see if that would also work. Using the alternative get_template_part code did not resolve the issue. Reverted back to the working version using extra div.

    The first element on my page inside the <body> tag was a <header>, now the first element is a <div>. Could this be causing some confusion with SF pro code?

    Anyway, thank you for your help Trevor. Pleased all is working now.

Viewing 10 posts - 1 through 10 (of 12 total)