Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Use the following function to display the location info.
<?php if( function_exists( 'aioseo_local_business_info' ) ) aioseo_local_business_info(); ?>
The following options are supported:
- locationId
- Default: ”
- If Multiple Locations is on use a location’s ID.
- If Multiple Locations is off ( and location_id is empty ) the Business Information under AIOSEO -> Local Seo -> Business Info will be used.
- showLabels
- Default: true
- Show or hide labels ( ‘Address:’, ‘Phone:’, ‘Fax:’, ‘Email:’, etc ).
- showIcons
- Default: true
- Show or hide icons ( address, phone, fax, email ).
- showName
- Default: true
- Show or hide the business name.
- showAddress
- Default: true
- Show or hide the address.
- showPhone
- Default: true
- Show or hide the phone number.
- showFax
- Default: true
- Show or hide the fax number.
- showEmail
- Default: true
- Show or hide the email.
- showVat
- Default: true
- Show or hide the Vat ID.
- showTax
- Default: true
- Show or hide the Tax ID.
- addressLabel
- Default: Address
- Specify the text for the Address label
- phoneLabel
- Default: Phone
- Specify the text for the Phone label
- faxLabel
- Default: Fax
- Specify the text for the Fax label
- emailLabel
- Default: Email
- Specify the text for the Email label
- vatIdLabel
- Default: VAT ID
- Specify the text for the VAT ID label
- taxIdLabel
- Default: Tax ID
- Specify the text for the Tax ID label
Note:
You can find the Location ID to use in this shortcode by editing a location and looking in the browser URL bar where it says “post=1”. The number is the Location ID.
Here’s an example of how to use these arguments:
<?php if( function_exists( 'aioseo_local_business_info' ) ) aioseo_local_business_info( array(
'locationId' => '1',
'showLabels' => 'true',
'showIcons' => 'true',
'showName' => 'true',
'showAddress' => 'true',
'showPhone' => 'true',
'showFax' => 'true',
'showEmail' => 'true',
'showVat' => 'true',
'showTax' => 'true',
'addressLabel' => 'true',
'phoneLabel' => 'true',
'faxLabel' => 'true',
'emailLabel' => 'true',
'vatIdLabel' => 'true',
'taxIdLabel' => 'true'
) ); ?>