Skip to main content
Wordpress

google map address in do_shortcode();

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);

0 Reviews

There are no reviews yet.