Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102129

ollybach on "[Plugin: WooCommerce - excelling eCommerce] non woocomerce shortcodes in (frontend)tabs content"

$
0
0

Hi

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

thanks

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

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 102129

Trending Articles