Title: Include a map in PHP
Last modified: September 1, 2016

---

# Include a map in PHP

 *  Resolved anonymized-14950711
 * (@anonymized-14950711)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/include-a-map-in-php/)
 * Hello,
    I’d like to include a map in my theme. The map should be the same for
   all pages/posts and should be placed in the page footer, rathern than in the 
   page/post content. How do I implement this feature? Thanks
 * [https://wordpress.org/plugins/wp-google-maps/](https://wordpress.org/plugins/wp-google-maps/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPGMaps](https://wordpress.org/support/users/wpgmaps/)
 * (@wpgmaps)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/include-a-map-in-php/#post-7520630)
 * Hi there.
 * Thank you for getting in touch with us.
 * Our plugin makes use of a shortcode to add the map to a page: [wpgmza id=’1′]
 * If you’d like to add this into your PHP code, you’d need to do something like
   this:
 * `<?php echo do_shortcode("[wpgmza id='1']"); ?>`
 * Does this help at all?

Viewing 1 replies (of 1 total)

The topic ‘Include a map in PHP’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-maps/assets/icon-256x256.png?rev=3058363)
 * [WP Go Maps - Google Maps, OpenStreetMap, Leaflet Map](https://wordpress.org/plugins/wp-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-maps/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [WPGMaps](https://wordpress.org/support/users/wpgmaps/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/include-a-map-in-php/#post-7520630)
 * Status: resolved