Answer the question
In order to leave comments, you need to log in
How to paginate a custom query in WP_Query?
So, the logic is this:
There is a taxonomy page, where posts are displayed in the standard cycle.
On the same page there are checkboxes for filters, when you click on the checkbox, information about the category is sent by AJAX to the handler.
A new selection is made in the handler:
$query= new WP_Query(array(
'post_type' => 'product',
'posts_per_page' => get_option('posts_per_page'),
'taxonomy_name1' => 'term_slug1',
'taxonomy_name2' => 'term_slug2',
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question