Short description on shop page – playlist not displaying in search
-
Hi there. I hope someone might be able to help with this.
I have this code in my functions.php.add_action( 'woocommerce_after_shop_loop_item', 'woo_show_excerpt_shop_page', 15 ); function woo_show_excerpt_shop_page() { global $product; echo do_shortcode( $product->post->post_excerpt ); }
It allows the product short description to display under all of the product thumbnails in the main shop page. However, the short description also includes an mp3 playlist. This all works fine except in search results, where it only displays the playlist shortcode. I’m sure this was working so am thinking an update might have changed something but I’m not sure and am no coder. Could anyone maybe help me guide me to resolving this?
If you look at the page I’ve provided, this is how it should look.
However, if you search for someone (in the top bar), only the playlist shortcode is displayed under their thumbnail- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Short description on shop page – playlist not displaying in search’ is closed to new replies.