Support » Plugin: Interactive Geo Maps » Shortcode isn’t working

  • Resolved jacquelinetropp

    (@jacquelinetropp)


    When I use “<?php echo do_shortcode(‘[display-map id=”26″]’); ?>” on my front-page, it just makes a big white block but when I put it directly on the page on wordpress’ page options, it loads.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Carlos Moreira

    (@carlosmoreirapt)

    Hi @jacquelinetropp
    Can you share the link to the page where you the PHP code so I can check what could be missing?
    Seems the shortcode works, but not when you try to render it with PHP.
    Are you applying it to a custom template page? Make sure it includes the wp_footer function, since the plugins needs it to load the assets.
    Greetings, Carlos

    Thread Starter jacquelinetropp

    (@jacquelinetropp)

    Hi,
    I am developing it on localserver so I am not able to share the page. I’ve tried both ways of doing <?php echo do_shortcode(“[your_shortcode]”); ?> and then putting it on the page and instead using <?php the_content() ?> to pull it from the page and that doesnt work either. If I put it on it’s own page and put the shortcode there it works. I think I am missing the wp_footer function but I’m not sure what code to put there.

    Plugin Author Carlos Moreira

    (@carlosmoreirapt)

    Your page should either contain
    <?php wp_footer(); ?>
    Or include a file that does it
    Usually theme files have this function in the footer.php file.

    Check the source page of your page and see if you see .js and .css files from the plugin folder. If you don’t see any files, that’s the issue.

    If you see the files and the map still doesn’t display, then most likely it’s a javascript conflict with something else that exists on your page:

    Using Your Browser to Diagnose JavaScript Errors

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.