Support » Plugin: WooCommerce » non woocomerce shortcodes in (frontend)tabs content

  • Resolved ollybach



    I have managed to add a couple of custom tabs to the product page.
    all is well, except that these tabs only appear to be parsing woocommerce shortcodes but no others.

    basically the frontend tabs get displayed like so:

    //some other functions//
    	 * frontend display panels
    	add_filter( 'woocommerce_msci_product_tabs_content', 'do_shortcode' );
    	function msci_woo_product_tabs_content( $key, $tab ) {
    		$content =  wpautop( $tab['content']);
    		echo apply_filters( 'woocommerce_msci_product_tabs_content', $content, $tab['id'] );

    adding [recent_products per_page=”12″ columns=”4″ orderby=”date” order=”desc”] for example into this tab’s admin will display the recent products as expected, but things like [jwplayer mediaid=”695″] (jwplayer of course being installed and active) will just render the shortcode

    any hints or suggestions appreciated


    PS: i’m of course happy to show more code if needs be

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roy Ho


    If it works for one shortcode, it should work for all just the same because you’re using do_shortcode function. Perhaps try some other plugin that has shortcodes and put that in there and see if it works just for a test. This will isolate the issue if it isn’t just with the jwplayer plugin.


    good call. i’ve been banging my head against the wall.
    other shortcodes seem to work just fine…

    so, over to jwplayer to tell them off (mind you, since v2.0+ their plugin just sucks…but i digress)

    thanks for the fast response though , much appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘non woocomerce shortcodes in (frontend)tabs content’ is closed to new replies.