Pagination (page/2/) displaying 404 on archive pages for page Navi plugin

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email
//Product Cat Pagination 
function modify_product_cat_query( $query ) {
	if (!is_admin() && $query->is_tax("product_cat")){
		 $query->set('posts_per_page', 8);
	}
}
add_action( 'pre_get_posts', 'modify_product_cat_query' );
Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert