Usage in Template
-
I’d like to use the shortcode in a page template, but the following simply echos everything to the screen, but does not render the map:
echo do_shortcode('{google_map}'.$locaddress.'{/google_map}');
This is per the Function Reference:
https://codex.www.ads-software.com/Function_Reference/do_shortcode
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Usage in Template’ is closed to new replies.