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

Introduction

1
  • Documentation WXP Plugins

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

22
  • Installation
    • Installing WXP Restaurant Menu
  • Basic operations
    • Understanding the concept
    • The Settings for the WXP Restaurant Menu Plugin
    • The Icon menu
    • The Sets Menu
    • The Tags Menu
    • The Groups Menu
    • The Categories menu
    • Adding the ‘Menu Items’ (Dishes)
  • Visual Elements
    • General info
      • The Restaurant Menu Element
      • Menu Selection Element
    • Shortcodes
      • WXP Restaurant Menu shortcodes
    • Elementor
      • WXP Plugins Elementor Widgets
      • Elementor Menu Page Widget
      • Elementor Menu Page Widget style settings
      • Elementor Menu Selection Element
    • WordPress Blocks
      • WXP Plugins WordPress Blocks
      • WordPress Restaurant Menu Block
      • Menu Selection Block
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Menu shortcodes

WXP Local Events

18
  • Installation
    • Installing WXP Local Events
  • Basic operations
    • Understanding the concept
    • Settings for the WXP Local Events plugin
    • Categories
    • Events – The overview
  • Visual Elements
    • General info
      • The Events Calendar Element
      • The Event Registration Form Element
      • The Events Custom Post Type
    • Shortcodes
      • WXP Local Events shortcodes
    • Elementor
      • WXP Plugins Elementor Widgets
      • The Events Calendar Widget
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Local Events shortcodes
  • Add ons
    • 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 Restaurant Menu
  • For developers
  • WXP Restaurant Menu shortcodes

WXP Restaurant Menu shortcodes

4 min read

0:00 / 3:58

WXP Restaurant Menu has two shortcodes: [wxp_menu] shows the full menu, and [wxp_menu_selection] shows a few dishes on another page, for example your favourites on the homepage. Both are also available as a block and as an Elementor widget, with the same settings.

[wxp_menu] #

The menu, grouped by category and sorted by sort order. Dishes that are not available today are hidden.

[wxp_menu]
[wxp_menu category="starters,main-dishes" show_images="no"]
[wxp_menu group="vegetarian" template="compact"]
[wxp_menu filters="categories,groups,tags"]
[wxp_menu tabs="yes" filters="groups" label_groups="Diet"]

Parameters #

ParameterValuesDefaultWhat it does
categorycategory slugs, comma separatedallOnly these categories. The order you give is the order of the sections. Sub categories are included.
groupgroup slugs, comma separatedallOnly dishes in any of these dietary groups.
tagtag slugs, comma separatedallOnly dishes with any of these tags.
templatedefault, compact, cards, elegant, side-by-side, or a template in your themedefaultThe layout of the menu.
show_imagesyes or noyesShow the photo of each dish.
show_descriptionsyes or noyesShow the description of each dish.
show_groupsyes or noyesShow the dietary groups (for example vegetarian) as labels.
show_tagsyes or nonoShow the tags as labels.
show_category_titlesyes or noyesShow the category headings.
heading_level2 to 62The heading level of the top level categories.
image_sizea registered image size, for example thumbnailthe size of the templateThe image size to use. The cards template uses medium_large.
filterscategories, groups, tags, comma separatednoneFilter buttons for visitors. Only categories, groups and tags of the shown dishes get a button.
label_categoriestextthe site-wide text, or “Category”The text in front of the category buttons.
label_groupstextthe site-wide text, or “Dietary”The text in front of the group buttons.
label_tagstextthe site-wide text, or “Tags”The text in front of the tag buttons.
term_colorsyes or noyesUse the pill colours of categories, groups and tags.
iconsyes or noyesShow the icons of categories, groups and tags.
tabsyes or nonoOne tab per top level category, the first one open. Needs at least two top level categories and replaces the category filter.

An empty label_* keeps the default text. The site-wide texts are set under Restaurant menu → Settings → Filter button labels.

[wxp_menu_selection] #

A few dishes on another page.

[wxp_menu_selection set="favourites" count="3"]
[wxp_menu_selection ids="12,15,18" mode="carousel" count="3" interval="5" menu_page="42"]
[wxp_menu_selection set="lunch" template="text" menu_page="/menu/"]

Parameters #

ParameterValuesDefaultWhat it does
idsmenu item IDs, comma separatednoneThe dishes to show, by ID.
setset slugs, comma separatednoneThe dishes in these sets are added to the IDs. Sets are made under Restaurant menu → Sets.
moderandom, carousel, listrandomrandom picks count dishes at random, new on every page view. carousel moves through up to 10 dishes, count visible at once. list shows the first count dishes in menu order.
count1 to 103The number of dishes shown, or visible at once in the carousel.
interval2 to 304Seconds between two moves of the carousel.
templatedefault, cards, text, or a template in your themedefaultThe layout of the dishes. A theme template is a file named selection-{name}.html.twig.
show_imagesyes or noyesShow the photos. The text template does not use this.
show_descriptionsyes or noyesShow the descriptions. The text template does not use this.
show_pricesyes or noyesShow the prices.
image_sizea registered image sizethe size of the templateThe image size to use.
heading_level2 to 63The heading level of the dish titles.
menu_pagea page ID or a URLnoneThe page with the full menu. A dish then links to its category on that page. Without it the dishes are not links.

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.
  • Dishes that are not available today are left out of both shortcodes.
  • Page cache: the dishes are part of the page, so they show at once. A cache can freeze the random choice; the plugin’s script then picks other dishes from the pool in the page when the page is older than a minute.
  • 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 November 5, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Twig templatesFilter- and action hooks
Table of Contents
  • [wxp_menu]
    • Parameters
  • [wxp_menu_selection]
    • Parameters
    • Good to know
WXP Plugins

Demo

Pricing

Affiliates

© 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