Render map with short code google maps

Peter76
Sophomore
Just Getting Started

Member    Likes (0)

Hi i am currently using the google maps and am using the Custom field feature which works great when i click automatically show map. My problem is i want to load the map elsewhere other than under or above the post. I have a tab that i wanted loaded in and im trying to get it to render but it just comes out blank

<?php echo do_shortcode('[map id="ecpt_address"]'); ?>

what is the shortcode i need to add to make the map render the address custom field when the post has one?

thanks!

WordPress Questions?

We've got answers!

  • 350+ Premium Plugins & Themes
  • 'Your WordPress Team' support
  • WordPress Nirvana from just $19

Find out more »