Skip to main content

How to Add Maps Directly to PHP theme files

James avatar
Written by James
Updated over a year ago

If you need to add a map directly in a theme or a different plugin file, you can use the following:

<?php echo do_shortcode('[display-map id="123"]'); ?>

Basically you will need to get the shortcode for your map and use it inside the do_shortcode function from WordPress.

Did this answer your question?