Forums › Forums › Search & Filter Pro › Filter's count and show results
Tagged: plugin, problem, search results, taxonomy
- This topic has 8 replies, 2 voices, and was last updated 9 years, 8 months ago by
Ross.
-
Anonymous(Private) December 8, 2015 at 9:12 pm #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(Private) December 8, 2015 at 9:34 pm #31765Nice 🙂 Let me know if you have the issue again and I will investigate.
Thanks
Ross Moderator(Private) December 8, 2015 at 11:13 pm #31781When 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(Private) December 8, 2015 at 11:14 pm #31782Update – 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(Private) December 12, 2015 at 3:16 pm #32071Yes, 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(Private) December 13, 2015 at 10:35 pm #32112Hey 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
-
AuthorPosts