Title: Not rendering the map when pulling data from a database table
Last modified: August 21, 2016

---

# Not rendering the map when pulling data from a database table

 *  [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/not-rendering-the-map-when-pulling-data-from-a-database-table/)
 * 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!
 * [http://wordpress.org/plugins/google-map-shortcode/](http://wordpress.org/plugins/google-map-shortcode/)

The topic ‘Not rendering the map when pulling data from a database table’ is closed
to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Joe](https://wordpress.org/support/users/joewa1980/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/not-rendering-the-map-when-pulling-data-from-a-database-table/)
 * Status: not resolved