I realized to use the widget. But can I use different hours for different pages? Thank you
Hi riccadosuardi,
You can indeed use the widgets and shortcodes documented here: https://github.com/janizde/WP-Opening-Hours#widgets
As for the different opening hours on different pages: In general you have to set up multiple sets of opening hours in the admin UI and then select the corresponding set in the widget/shortcode. To do this there are multiple ways:
When using shortcodes per page you can simply set the different IDs or set aliases (see https://github.com/janizde/WP-Opening-Hours#getting-started step 7).
When using widgets and you want to alter the set per page there are multiple ways:
1. Use another plugin like WP Page Widget (https://de.ww.wp.xz.cn/plugins/wp-page-widget/) and define the widgets per page.
2. If you are capable of coding, use the op_shortcode_attributes filter (https://github.com/janizde/WP-Opening-Hours/blob/master/doc/filters.md#op_shortcode_attributes) and alter the set_id per page. You may also use Set aliases for this.
Perfect. It’s exactly what I needed! Thank you very much, you saved me a lot of time and money!