title

Proper Syntax Do_shortcode using sprintf

 

Proper Syntax Do_shortcode using sprintf

05 Juin 2013, Posted by antoine in

$shortcode = sprintf(
'[pw_map address="%1$s %2$s %3$s %4$s" width="%5$s" height="200px"]',
$address,
$city,
$province,
$postalcode,
'100%'
);
echo do_shortcode( $shortcode );