Commit 9b428a11 by Pham Huy

update số lượng sp

parent 8e398e6d
...@@ -18,7 +18,7 @@ get_header(); ...@@ -18,7 +18,7 @@ get_header();
<div class="row"> <div class="row">
<?php <?php
// Products per page // Products per page
$per_page = 10; $per_page = 12;
if ( get_query_var( 'taxonomy' ) ) { // If on a product taxonomy archive (category or tag) if ( get_query_var( 'taxonomy' ) ) { // If on a product taxonomy archive (category or tag)
$args = array( $args = array(
'post_type' => 'product', 'post_type' => 'product',
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// Only run on shop archive pages, not single products or other pages // Only run on shop archive pages, not single products or other pages
if ( is_shop() || is_product_category() || is_product_tag() ) { if ( is_shop() || is_product_category() || is_product_tag() ) {
// Products per page // Products per page
$per_page = 10; $per_page = 12;
if ( get_query_var( 'taxonomy' ) ) { // If on a product taxonomy archive (category or tag) if ( get_query_var( 'taxonomy' ) ) { // If on a product taxonomy archive (category or tag)
$args = array( $args = array(
'post_type' => 'product', 'post_type' => 'product',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment