Wordpress

google map address in do_shortcode();

By mayo 23, 2018 mayo 31st, 2020 No Comments

1.- Install

Simple Google Maps Shortcode

2.- add filter to enter variable in shortcode

3.- example use (with acf input)

$address = ‘[pw_map address=»‘;
$address .= get_field(‘direccion’);
$address .= ‘» width=»100%» height=»100%» key=»AIzaSyAxE0wAguadFp7CMveshvvisC4HUDKbmnU»]’;
  echo do_shortcode($address);

Leave a Reply