Viewing 1 replies (of 1 total)
  • Plugin Author WPBean

    (@wpbean)

    @alfrescoid,

    Add this PHP code to your child theme’s functions.php file. After that create a custom tab using our plugin and use this shortcode for the tab content for showing the product tags.

    ShortCode:

    [wpb_wc_product_tags]

    PHP Code:

    add_shortcode( 'wpb_wc_product_tags', function(){
        global $product;
        ob_start();
        echo wc_get_product_tag_list( $product->get_id(), ', ', '<span class="tagged_as">' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'woocommerce' ) . ' ', '</span>' ); 
        return ob_get_clean();
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Product Tags’ is closed to new replies.