Title: Template code?
Last modified: August 19, 2016

---

# Template code?

 *  [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/)
 * Hi,
 * Is it possible to call a map via code added to my theme?
 * I want to place the map elsewhere, actually, outside of the main content loop,
   thus not before or after the post…but well down the page, after a photo gallery
   and such. Is it possible with your plugin? Thus far I really like it.
 * Thanks.

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

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045778)
 * You should be able to use wpgeo_post_map() in the loop.
    [http://www.wpgeo.com/documentation/template-tags](http://www.wpgeo.com/documentation/template-tags)
 * You could try using the same function passing the post ID outside the loop:
    
   wpgeo_post_map($post_id);
 *  Thread Starter [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045780)
 * Biggity bam, that’s exactly what I needed.
 * I’ve been trying other mapping plugins, but they never worked as needed/wanted.
   Yours does! Thank you so much!!!
 *  [jasonday](https://wordpress.org/support/users/jasonday/)
 * (@jasonday)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045781)
 * Is it also possible to only show custom post types? (the only geocoded posts 
   I will have)
 *  Thread Starter [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045782)
 * I second this question.
 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045807)
 * [@jasonday](https://wordpress.org/support/users/jasonday/)
 * Can you explain more fully what you mean.
    Do you only want to show a map on 
   certain post type pages or create one map that only shows a certain custom post
   type?

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

The topic ‘Template code?’ is closed to new replies.

 * ![](https://ps.w.org/wp-geo/assets/icon-256x256.png?rev=993625)
 * [WP Geo](https://wordpress.org/plugins/wp-geo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-geo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-geo/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-geo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-geo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-geo/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Ben Huson](https://wordpress.org/support/users/husobj/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/template-code/#post-2045807)
 * Status: not resolved