Skip to content
WXP Plugins

Plugins

WXP Restaurant Menu

WXP Opening Times

WXP Local Events

WXP Restaurant Reservations

Demo

Pricing

Support

Docs

FAQ

Buy

Menu

Plugins

- WXP Restaurant Menu

- WXP Opening Times

- WXP Local Events

- WXP Restaurant Reservations

Demo

Pricing

Support

- Docs

- FAQ

Buy

WXP Opening Times

8
  • Installation
    • Installing WXP Opening Times
  • Basic operations
    • Creating your (first) schedule
    • Setting exceptions
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Opening Times shortcodes
  • Jewish and Islamic holidays
    • Installation
      • Installing WXP Opening Times: Jewish and Islamic holidays
    • For developers
      • Jewish and Islamic holidays: for developers

WXP Restaurant Menu

7
  • Installation
    • Installing WXP Restaurant Menu
  • Basic operations
    • Understanding the concept
    • The Settings for the WXP Restaurant Menu Plugin
    • The Icon menu
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Menu shortcodes

WXP Local Events

8
  • Installation
    • Installing WXP Local Events
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Local Events shortcodes
  • Local Events for WooCommerce
    • Installation
      • Installing WXP Local Events for WooCommerce
    • For developers
      • Local Events for WooCommerce: for developers
  • Events Feed
    • Installation
      • Installing WXP Events Feed
    • For developers
      • Events Feed: for developers

WXP Restaurant Reservations

6
  • Installation
    • Installing WXP Restaurant Reservations
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Reservations shortcodes
  • Rooms
    • Installation
      • Installing WXP Restaurant Bookings: Rooms
    • For developers
      • Rooms: for developers

General Developer Information

1
  • Twig
    • Twig templates in the WXP plugins

WXP Agency Kit

1
  • WXP Agency Kit: demo content from the command line
View Categories
  • Home
  • Documentation
  • WXP Opening Times
  • For developers
  • WXP Opening Times shortcodes

WXP Opening Times shortcodes

3 min read

0:00 / 3:02
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

WXP Opening Times has one shortcode. It shows the opening times of a schedule and whether you are open right now. You can also use the Opening times block in the block editor or the widget in Elementor; they offer the same settings.

[wxp_opening_times] #

The simplest form shows the first schedule with the default template:

[wxp_opening_times]

More examples:

[wxp_opening_times schedule="kitchen" template="compact"]
[wxp_opening_times week_nav="yes" weeks_ahead="8" show_dates="yes"]
[wxp_opening_times template="grouped" show_title="yes" heading_level="2"]
[wxp_opening_times schema="yes"]

Parameters #

Parameter Values Default What it does
schedule the id of a schedule, as shown in the admin the first schedule Which schedule to show. An unknown id gives a message that only editors can see.
template default, grouped, compact, or the name of a template in your theme default The layout of the opening times. grouped puts days with the same times on one line.
show_status yes or no yes The Open or Closed badge with a short sentence, for example “Open until 10:00 pm”.
show_title yes or no no Show the schedule name as a heading.
heading_level 2 to 6 3 The heading level of that title.
show_dates yes or no no Show the date next to each weekday.
week_nav yes or no no Buttons to browse to the previous and next week.
weeks_ahead 0 to 26 4 How many weeks ahead visitors can browse with the week buttons.
schema yes or no no Also print the opening times as structured data (schema.org JSON-LD) for search engines. Printed once per schedule on a page.
text_closed text the text of the schedule The word for “Closed” in this block only.
text_open text the text of the schedule The word for “Open” in this block only.
text_separator text the text of the schedule The separator between two opening periods in one day.
text_open_until text, use {time} for the time the text of the schedule The sentence while you are open, for example Open until {time}.
text_closed_opens text, use {time} for the time the text of the schedule The sentence while you are closed, for example Closed, opens {time}.

Good to know #

  • Yes and no: wherever a parameter takes yes or no, you may also write true, 1 or on for yes. Anything else counts as no.
  • Texts: the text_* parameters win over the words you set for the schedule in the admin. Leave them out to use the words of the schedule.
  • Time zone: the times follow the time zone, week start and time format in Settings → General.
  • Page cache: the open/closed status is refreshed in the browser when the page was cached for more than five minutes, and at the moment the status changes.
  • Own layout: a template in your theme is used when you give its name to template. Copy a file from the plugin’s templates folder to start from.
  • Showing the code in a page: WordPress runs shortcodes everywhere in the content, also inside code blocks. To show a shortcode as text, write it with double brackets, like in this guide.
Updated on October 30, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Twig templatesFilter- and action hooks

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • [wxp_opening_times]
    • Parameters
    • Good to know
WXP Plugins

Demo

Pricing

© 2026 WXP Plugins. All prices are in euro, excluding VAT.

WXPPlugins is a brand of WP Digital Marketing - The Netherlands - Chamber of Commerce (KvK) 75580152