Display product description on WooCommerce shop/category pages

function woocommerce_after_shop_loop_item_title_short_description() { global $product; if ( ! $product->post->post_excerpt ) return; ?> <div itemprop="description" class="WooListDescription"> <?php echo apply_filters( 'woocommerce_short_description', $product->post->post_excerpt ) ?> </div> <?php } add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5);



Ref. Sites :

GitHubGist | om4james : https://gist.github.com/om4james/9883140

WooCommerce | Action and Filter Hook Reference : https://docs.woocommerce.com/wc-apidocs/hook-docs.html




Posted by cpu21