Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

custom taxonomy pagination 404

function modify_product_cat_query( $query ) {
  if (!is_admin() && $query->is_tax("product_cat")){
       $query->set('posts_per_page', 2);
  }
}
add_action( 'pre_get_posts', 'modify_product_cat_query' );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #custom #taxonomy #pagination
ADD COMMENT
Topic
Name
1+3 =