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!
- The topic ‘Not rendering the map when pulling data from a database table’ is closed to new replies.