In 20% of wp themes this issue happens. Some time it was the trouble, because issue is just concatenation of circumstances with wp_query and permalinks.
First way:
In the file wp-content\plugins\meta-data-filter\views\shortcode\meta_data_filter.php on the same bottom uncomment code wp_reset_query(); and try is the filter still works and pagination is ok.
Second way:
Universal decision based on JavaScript. You have to insert next code into your wp theme footer.php file after <?php wp_footer(); ?>:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php if (class_exists('MetaDataFilter') AND MetaDataFilter::is_page_mdf_data()): ?> <script type="text/javascript"> jQuery(function () { //pagination fix var pag_links = jQuery('ul.page-numbers').find('li a'); jQuery.each(pag_links, function (index, a) { jQuery(a).attr('href', jQuery(a).attr('href').replace('#038;', '&')); var l = jQuery(a).attr('href'); var res = l.split("/page/"); var p = 1; if (res[1] !== undefined) { p = parseInt(res[1]); } jQuery(a).attr('href', l + '&mdf_page_num=' + p); }); }); </script> <?php endif; ?> |
By the way css class:
1 | ul.page-numbers |
can be another, so you have to define what the css class using by your wp theme for pagination list (use firebug). Usually css selector ul.page-numbers uses by woocommerce themes ...