Forums Forums Search & Filter Pro Custom post type ajax refresh on resutls

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #226361

    Hello, i have set a custom post type, i used a custom page to implement the resutls i have a side bar filter and the resutls in the main area,

    the problem
    when i apply filters the resutls in the main airea wont refresh, what is the right way to implement this? thanks

    this is what i have,

    <?php
    $args = Array(
    “post_type”=>”post”,
    “search_filter_id”=>64,
    “orderby”=>”ID”,
    “order”=>”DESC”,
    “paged”=>1,
    );
    query_posts($args);

    ?>

    <?php if ( have_posts() ) : ?>
    <?php /* Start the Loop */ ?>
    <?php $count = 0; ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php if ($count % 4 == 0) { ?>
    <div class=”row mb-4”>
    <?php } ?>
    <?php

    /*
    * Include the Post-Format-specific template for the content.
    * If you want to override this in a child theme, then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    */
    get_template_part( ‘loop-templates/content’, ‘grid’);
    ?>
    <?php $count++; ?>
    <?php if ($count % 4 == 0) { ?>
    </div>
    <?php } ?>
    <?php endwhile; ?>
    <?php else : ?>

    <?php get_template_part( ‘loop-templates/content’, ‘none’ ); ?>

    <?php endif; ?>

    Trevor
    #226416
    This reply has been marked as private.
    Anonymous
    #226437
    This reply has been marked as private.
    Anonymous
    #226439
    This reply has been marked as private.
    Trevor
    #226445

    The form on the home page would imply have to have Ajax OFF and the results URL to point to the page where you want to show the results.

Viewing 5 posts - 1 through 5 (of 5 total)