From: Laury GvR Date: Wed, 15 Feb 2017 21:49:36 +0000 (-0500) Subject: Show category names above products on the shop page. X-Git-Tag: v1.0.11^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ebdc415c5c9382adc9d9a6b783d8d738275e0662;p=WP-Themes%2Fcapstone.git Show category names above products on the shop page. --- diff --git a/parts/shop-cats-and-products.php b/parts/shop-cats-and-products.php index 0cd06a9..d226ae9 100644 --- a/parts/shop-cats-and-products.php +++ b/parts/shop-cats-and-products.php @@ -1,11 +1,9 @@ $number, 'orderby' => 'title', 'order' => 'ASC', - 'hide_empty' => $hide_empty, - 'include' => $ids, + 'hide_empty' => false, 'exclude' => '18' ); @@ -47,7 +45,7 @@ have_posts()) { echo "TBD"; } echo "";?> diff --git a/woocommerce/content-product.php b/woocommerce/content-product.php new file mode 100644 index 0000000..95122fe --- /dev/null +++ b/woocommerce/content-product.php @@ -0,0 +1,71 @@ +is_visible() ) { + return; +} +?> +
  • > + get_categories( ', ', '' . _n( '', 'Categories:', 1, 'woocommerce' ) . ' ', '' ); ?> + +