Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Show one Woocommerce Attribute by Slug

// Add Shortcode
function wooAttribute( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'attr_slug' => '',
		),
		$atts,
		'woo_attribute'
	);

	if ( isset( $atts['attr_slug'] ) ) {
	    global $product;
	    $attr = $product->get_attribute( $atts['attr_slug'] );
	    return $attr;
	}

}
add_shortcode( 'woo_attribute', 'wooAttribute' );