Filter's count and show results

Forums › Forums › Search & Filter Pro › Filter's count and show results

Viewing 9 posts – 1 through 9 (of 9 total)
  • Anonymous
    #31502

    Hello, I have some problem with your plugin.
    I add taxonomies of custom post type and check . All categories post count is working good, all params in filter is correct apply but one category is not working.
    In that category I have 30 posts, plugin show only 1 and if I check it – don’t show any results. All other categories in the same taxonomy is working good.
    Where can be a problem?

    I selling a cars, in taxonomy I add Type and Brand terms.
    In Types one term show only 1 post, but if I try to find posts in that term by Brand – plugin show correct results.

    Hope for fast respond!

    Ross Moderator
    #31693

    Do you have a link I could look at?

    Anonymous
    #31757

    Hmm. It’s strange, I’m nothing change on site, but now plugin show right results and counts.
    Working demo: http://auto-fleet.ru/trucks/

    Ross Moderator
    #31765

    Nice 🙂 Let me know if you have the issue again and I will investigate.

    Thanks

    Anonymous
    #31779

    It’s happend again after filter settings update.

    Ross Moderator
    #31781

    When you update the search form, it has to rebuild some of the cache – when the cache is updated functionality should return to normal…

    Can you wait a little while and check again?

    Ross Moderator
    #31782

    Update – I just checked again – and it seems to work to me? I think this is the issue you are having – the delay after building a search form that is required to rebuild some parts of the cache.

    Thanks

    Anonymous
    #32071

    Yes, maybe it’s a cache. Now working fine.
    Can you help with autoload posts by clicking LoadMore button? I have it on taxonomy pages, there it’s working, but I can’t do it working on archive page with results of filter.

    On the taxonomy pages LoadMore get posts with this code:

    <?php if (  $wp_query->max_num_pages > 1 ) : ?>
                            <script>
                            var ajaxurl = '<?php echo site_url() ?>/wp-admin/admin-ajax.php';
                            var true_posts = '<?php echo serialize($wp_query->query_vars); ?>';
                            var current_page = <?php echo (get_query_var('paged')) ? get_query_var('paged') : 1; ?>;
                            var max_pages = '<?php echo $wp_query->max_num_pages; ?>';
                            var html_type = '';
                            var s = '';
                            </script>
                            <a href="#" class="more-products loadmore"><?php _e('Показать еще предложения', 'autofleet'); ?></a>
                        <?php endif; ?>

    And I don’t know how to get $wp_query->query_vars for filter results. Can you help me?

    Ross Moderator
    #32112

    Hey Dmitry

    I’m actually looking to build this into Search & Filter but haven’t yet had time.

    The only thing I would say is that if you want to get it to work I would recommend to setup a search form using the “As Archive” display method (the way this settings works is similar to your taxonomy archives)

    Also, S&F uses $_GET['sf_paged'] if you need to retrieve the paged value somewhere in your code.

    Thanks

Viewing 9 posts – 1 through 9 (of 9 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.