cleanup woocommerce loop
This commit is contained in:
parent
0c23350cae
commit
23276f20d5
|
@ -24,11 +24,15 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (is_singular('product')) {
|
if (is_singular('product')) {
|
||||||
|
|
||||||
woocommerce_content();
|
woocommerce_content();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
//For ANY product archive.
|
//For ANY product archive.
|
||||||
//Product taxonomy, product search or /shop landing page etc.
|
//Product taxonomy, product search or /shop landing page etc.
|
||||||
woocommerce_get_template('archive-product.php');
|
woocommerce_get_template('archive-product.php');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Reference in New Issue