Linux 软件免费装
Banner图

Business Places – Opening Hours Table & Local Business Schema

开发者
更新时间 2026年10月9日 10:20

标签

widget business place open-hour

下载

1.0.0 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1

详情介绍:

Show your business hours as a weekly opening hours table: time slots as rows, Monday to Sunday as columns, and a mark in every cell where you are open. Add the table with a block, a widget or a shortcode, and output LocalBusiness structured data (JSON-LD) with openingHoursSpecification for search engines. Formerly known as "Taro Open Hour". Who is it for? It fits the Japanese-style consultation hours table (診療時間表), e.g. "9:00–12:00 / 14:00–18:00" rows with ○ for open and × or / for closed. Features Case Study Case 1 If your site is for your bookstore, add your store's location as a business place. The location and opening hours are available via widgets. Case 2 If your site is a database of bouldering gyms, choose a post type to be treated as a location. Each single page will have its own place and opening hour information. How to display Blocks In the block editor, you can use "Open Hour" and "Business Place" blocks. Choose a place in the block settings. If empty, the current post or the site location is used. Widgets You can use widgets for opening hours and business locations. Shortcodes You can use the shortcode [open-hour] for the time table. If you are a theme developer, just use the tsoh_the_timetable() function. For business places, you can use [business-place post_id='10']. The attribute post_id can be omitted and its default value is the current post. Acknowledgements

安装:

  1. Upload the plugin files to the /wp-content/plugins/taro-open-hour directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to Settings > Business Places and set it up.

屏幕截图:

  • Open Hour block in the block editor. Choose which business place to display from the block sidebar.
  • Enter weekly time shifts and holiday notes in the Open Hour meta box.
  • Location settings: address, access information, and the business type (Schema.org) used for structured data.
  • Settings > Business Places: post types, default time shifts, default open days, and open/closed marks.
  • Business Place block showing the name, address, access information, and contacts.

常见问题:

How can I display opening hours or places with a block theme?

Block themes have no widget areas. Add a Shortcode block and enter [open-hour] for the time table or [business-place] for the place information. Both accept the post_id attribute (default: the current post), e.g. [business-place post_id='10'].

How do I make a clinic hours table with ○ marks?

  1. Go to Settings > Business Places and choose "○" as the open mark and "×" (or a custom text such as "/") as the closed mark.
  2. Edit the place (or the post) and add time slots such as 9:00–12:00 and 14:00–18:00.
  3. Tick the weekdays each slot is open, e.g. leave Saturday afternoon and Sunday unticked.
  4. Enter "Closed on Sundays and public holidays" in the holiday notes.
  5. Add the "Open Hour" block (or the [open-hour] shortcode) where you want the table.

Which schema type is output?

The JSON-LD uses the "Business Type" field of each place's location settings as @type. Choose a schema.org LocalBusiness subtype such as MedicalClinic, Dentist, HairSalon, Restaurant or Store; common types are suggested as you type. If the field is empty, LocalBusiness is used. Developers can change the default with the tsoh_default_local_business_type filter (and the final value with tsoh_local_business_type).

How can I contribute?

Please create an issue on GitHub.

更新日志:

2.3.0 2.2.1 2.2.0 2.1.0 2.0.1 2.0.0 1.0.0