custom taxonomy pagination 404

Solutions on MaxInterview for custom taxonomy pagination 404 by the best coders in the world

showing results for - "custom taxonomy pagination 404"
Emanuele
18 Apr 2019
1function modify_product_cat_query( $query ) {
2  if (!is_admin() && $query->is_tax("product_cat")){
3       $query->set('posts_per_page', 2);
4  }
5}
6add_action( 'pre_get_posts', 'modify_product_cat_query' );
7
similar questions
queries leading to this page
custom taxonomy pagination 404