Search
 
SCRIPT & CODE EXAMPLE
 

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' );
Comment

PREVIOUS NEXT
Code Example
Css :: display flex css compatibility 
Css :: npm registry package not found 
Css :: css grid auto row 
Css :: border-width 
Css :: customize scroll bar css 
Css :: preloader css 
Css :: how to use background property in css 
Css :: flex box writing sideways text top to bottom 
Css :: @container 
Css :: bootstrap class="mb-3" 
Css :: change the weight of a bold font css 
Css :: move scrollbar on element to right side 
Css :: elementor ccs code for gradient 
Css :: html css bring to page top 
Css :: linear-gradient tailwind 
Css :: responsive gradient background css 
Css :: flex: 0 1 auto 
Css :: css select alternate elements 
Css :: css class and id 
Css :: how to make a link into normal text css 
Css :: tailwind npm 
Css :: set css on parent element css 
Css :: remove black shadow from border css 
Css :: image align text align in center 
Css :: how to insert icons pseudo content 
Css :: padding left 
Css :: como diminuir uma imagem em css 
Css :: scroll div when page scroll 
Css :: css animation 
Css :: dot in image css 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =