WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Joe
    Member
    Posted 11 months 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!

    http://wordpress.org/plugins/google-map-shortcode/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.