I added the following code to my functions.php file in my child theme to show the short description on WooCommerce index pages, but on search it shows the shortcode instead of the content. I saw some other posts about this but none of the ones I saw were the same situation as mine. How do i remove the shortcode?
// Add Short Description WooCommerce Product/Category Loop
function woocommerce_after_shop_loop_item_title_short_description() {
global $product;
if ( ! $product->post->post_excerpt ) return;
?>
<div itemprop="description">
<?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);
Website is https://test.iguchibear.com
Search for Special Wheel and you will see what I mean.
Thanks, Todd