VC_MAP -Typ Nummer
<?php
add_shortcode( 'bartag', 'bartag_func' );
function bartag_func( $atts ) {
extract( shortcode_atts( array(
'foo' => 'something',
'color' => '#FFF'
), $atts ) );
return "<div style='color:{$color};'>foo = {$foo}</div>";
}
?>
Dev