Google Map Shortcode
Not rendering the map when pulling data from a database table (1 post)

  1. Joe
    Posted 2 years ago #

    Firstly this plugin is great! A real time saver!

    However, we are populating the address data with database table entries for each post. Manually, this plugin works fine, but when pulling database content into it the map isn't rendered and simply shows the text from the database entry along with "There is not points to locate on the map".

    This works perfectly, manually:
    <?php echo do_shortcode("[google-map-sc width='100%' height='150' address='PO33 1QT']"); ?>

    This does not:
    <?php echo do_shortcode("[google-map-sc width='100%' height='150' address='".the_job_location(false)."']"); ?>

    I should note that on its own the function <?php the_job_location(false); ?> works as it should.

    Any ideas? Many thanks!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Map Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.