Function: aioseo_local_map()

Use the following function to display the location info.

<?php if( function_exists( 'aioseo_local_map' ) ) aioseo_local_map(); ?>

The following options are supported:

  • locationId
    • If Multiple Locations is set to On use the post ID of the location
    • If Multiple Locations is set to Off, the map in the Business Info section under AIOSEO » Local SEO » Locations will be used
  • showLabel
    • Default: true
    • Show or hide the label ‘Our location:'
  • showIcon
    • Default: true
    • Show or hide the map icon which is displayed beside the label
  • width
    • Default: 100%
    • The width of the map. You may use a percentage or a fixed width in pixels
  • height
    • Default: 450px
    • The height of the map. You may use a percentage or a fixed height in pixels

Here’s an example of how to use these arguments:

<?php if( function_exists( 'aioseo_local_map' ) ) aioseo_local_map( array(
	'locationId' 		=> '1',
	'showLabel' 		=> 'true',
	'showIcon'  		=> 'true',
	'width' 		    => '100%',
	'height' 	        => '450px',
	'label'   	        => 'true'
) ); ?>