Support » Plugin: WooCommerce » Short description on shop page – playlist not displaying in search

  • Resolved Morphim

    (@morphim)


    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 1 year, 1 month ago by Morphim.
    • This topic was modified 1 year, 1 month ago by Morphim.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Don’t worry. I fixed this. I think the code is fine but some corruption of the database during migration might have been to blame.

Viewing 1 replies (of 1 total)
  • The topic ‘Short description on shop page – playlist not displaying in search’ is closed to new replies.