WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] non woocomerce shortcodes in (frontend)tabs content (3 posts)

  1. ollybach
    Member
    Posted 1 year ago #

    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/

  2. Roy Ho
    Member
    Posted 1 year ago #

    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.

  3. ollybach
    Member
    Posted 1 year ago #

    ahh,

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.