"Opening Hours Shortcode" For Local Business Schema In WordPress

Use the [wpt_schema_local_business_opening_hours /] opening hours shortcode to show your business opening hours. It uses data from the Local Business Schema.

Display business opening hours on WordPress page using the wpt_schema_local_business_opening_hours shortcode

Pre-requisites

  1. A WordPress website
  2. WordPress Schema Plugin plugin

Tools

  1. Computer

Total Duration : 5 minutes

FREE DOWNLOAD

Start your FREE trial. You can cancel your trial anytime within the trial period.

Step 1 - Setup Local Business Schema For Your Website

Setup Local Business Schema For Your Website
  1. Setup a Local Business Schema profile for your website.
FREE DOWNLOAD

Start your FREE trial. You can cancel your trial anytime within the trial period.

Step 2 - Shortcode Documentation

Shortcode Documentation
  1. [wpt_schema_local_business_opening_hours /] shortcode has the following attributes
    • css_id
      • CSS ID of the main wrapper element of the shortcode html.
      • Default value is wpt-schema-local-business-opening-hours
    • css_classes
      • CSS classes of the main wrapper element of the shortcode html.
    • post_id
      • The ID of the post/page that has the opening hours for the business.
      • If you don't use this attribute, the shortcode uses the current page
    • 24_hour_format
      • Whether to show hours in 24-hour format or 12-hour format
      • 1 for 24-hour format
      • 0 for 12-hour format
      • Default value is 0
    • hide_closed
      • Show the days when the location is close for business.
      • Set 1 to hide and 0 to show the day.
      • Default value is 1
    • show_days
      • A comma-separated list of the days for which to show opening hours.
      • The order of the day in the list sets the priority.
      • Default value is monday,tuesday,wednesday,thursday,friday,saturday,sunday
    • Sample Usage
      • [wpt_schema_local_business_opening_hours css_id='wpt-schema-local-business-opening-hours' css_classes='' post_id="" 24_hour_format="0" hide_closed="1" show_days="monday,tuesday,wednesday,thursday,friday,saturday,sunday" /]
FREE DOWNLOAD

Start your FREE trial. You can cancel your trial anytime within the trial period.