Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Use the following function to display the opening hours info.
<?php if( function_exists( 'aioseo_local_opening_hours' ) ) aioseo_local_opening_hours(); ?>
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 -> Opening Hours will be used.
- showTitle
- Default: true
- Show or hide the title.
- showIcons
- Default: true
- Show or hide icons ( address, phone, fax, email ).
- showMonday
- Default: true
- Show or hide the monday hours.
- showTuesday
- Default: true
- Show or hide the tuesday hours.
- showWednesday
- Default: true
- Show or hide the wednesday hours.
- showThursday
- Default: true
- Show or hide the thursday hours.
- showFriday
- Default: true
- Show or hide the friday hours.
- showSaturday
- Default: true
- Show or hide the saturday hours.
- showSunday
- Default: true
- Show or hide the sunday hours.
- label
- Default: Our Opening Hours:
- Specify the text for the 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_opening_hours' ) ) aioseo_local_opening_hours( array(
'locationId' => '1',
'showTitle' => 'true',
'showIcons' => 'true',
'showMonday' => 'true',
'showTuesday' => 'true',
'showWednesday => 'true',
'showThursday' => 'true',
'showFriday' => 'true',
'showSaturday' => 'true',
'showSunday' => 'true',
'label' => 'true'
) ); ?>