Title: Use php function to call Google map
Last modified: August 30, 2016

---

# Use php function to call Google map

 *  Resolved [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/use-php-function-to-call-google-map/)
 * Hello,
 * Is there a way of call a WP Google Map with a php function instead a shortcode?
 * Thanks for your help.
 * [https://wordpress.org/plugins/wp-google-map-plugin/](https://wordpress.org/plugins/wp-google-map-plugin/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [allan1978](https://wordpress.org/support/users/allan1978/)
 * (@allan1978)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/use-php-function-to-call-google-map/#post-6496990)
 * You can control where a map is shown by using the do_shortcode function:
 * <?php echo do_shortcode(‘[put_wpgm id=1]’); ?>
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/use-php-function-to-call-google-map/#post-6497027)
 * Hello [@allan1978](https://wordpress.org/support/users/allan1978/),
 * Thanks for your answer. [@andrescifuentesr](https://wordpress.org/support/users/andrescifuentesr/)–
   You can use do_shortcode function to execute a shortcode using php anywhere you
   want.
 * if you need something else, please let me know.
 * Thanks
 *  Thread Starter [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/use-php-function-to-call-google-map/#post-6497124)
 * It was pretty obvious somehow I managed to get it wrong.
    Nos it’s working like
   a charm.
 * Thank you both [@allan1978](https://wordpress.org/support/users/allan1978/) and
   [@flipper](https://wordpress.org/support/users/flipper/) Code.
 * [@flipper](https://wordpress.org/support/users/flipper/) Code keep the good job!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Use php function to call Google map’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-map-plugin/assets/icon-256x256.gif?rev=3111000)
 * [WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters](https://wordpress.org/plugins/wp-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-map-plugin/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 3 participants
 * Last reply from: [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/use-php-function-to-call-google-map/#post-6497124)
 * Status: resolved