Title: Display Location On Posts
Last modified: August 21, 2016

---

# Display Location On Posts

 *  Resolved [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/)
 * Is there anyway to display the address of a map that’s associated with a post?
   In other words, I have a post and I have a map displayed on that post. I would
   like to display the address of that map in the post content somewhere. eg. 1234
   Apple Street. (like get_post_meta)
    Thanks
 * [http://wordpress.org/plugins/post-google-map/](http://wordpress.org/plugins/post-google-map/)

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

 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352802)
 * Can’t recall the meta key(s) offhand, but the address data is stored as post 
   meta. Just need to pinpoint the right ones.
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352804)
 * I seen that. It’s an array of data in one key “gmp_arr” I believe. Not sure how
   to extract that and make it readable in post.
    BTW thanks for the quick response!
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352815)
 * OK I’m getting somewhere… I used `<?php $gmp_arr = get_post_meta( $post->ID, '
   gmp_arr', true );?>`
    `<?php echo implode( ', ', $gmp_arr ); ?>` which pulls 
   all the data. I now need to figure how to just pull the title, address, zip, 
   city and state.
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352839)
 * Figured it out.
    `<?php $gmp_arr = get_post_meta( $post->ID, ‘gmp_arr’, true );?
   >’ `<?php echo $gmp_arr['gmp_address1']; ?>` Repeat the echo for each one you
   need.
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352852)
 * Glad you got that worked out. If you didn’t I was planning to re-check the code
   and see how it’s done, to help you. I’m not the most familiar with it, and we’re
   not actively working on it at all right now.

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

The topic ‘Display Location On Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-google-map.svg)
 * [Post Google Map](https://wordpress.org/plugins/post-google-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-google-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-google-map/)
 * [Active Topics](https://wordpress.org/support/plugin/post-google-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-google-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-google-map/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/display-location-on-posts/#post-4352852)
 * Status: resolved