Title: Shortcode isn&#8217;t working
Last modified: January 3, 2021

---

# Shortcode isn’t working

 *  Resolved [jacquelinetropp](https://wordpress.org/support/users/jacquelinetropp/)
 * (@jacquelinetropp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-isnt-working-8/)
 * 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)

 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-isnt-working-8/#post-13858959)
 * Hi [@jacquelinetropp](https://wordpress.org/support/users/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](https://wordpress.org/support/users/jacquelinetropp/)
 * (@jacquelinetropp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-isnt-working-8/#post-13858970)
 * 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.
 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-isnt-working-8/#post-13858990)
 * 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](https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcode isn’t working’ is closed to new replies.

 * ![](https://ps.w.org/interactive-geo-maps/assets/icon-256x256.png?rev=3115060)
 * [MapGeo - Interactive Geo Maps](https://wordpress.org/plugins/interactive-geo-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/interactive-geo-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/interactive-geo-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/interactive-geo-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/interactive-geo-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/interactive-geo-maps/reviews/)

## Tags

 * [not-loading](https://wordpress.org/support/topic-tag/not-loading/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-isnt-working-8/#post-13858990)
 * Status: resolved