Simple Restaurant Menu Display

外掛說明

Simple Restaurant Menu Display allows you to:

  • Create and categorize menu items using a custom post type and taxonomy
  • Define multiple quantity/price pairs for items (like size/portion/volume)
  • Mark items as “Special” with a custom field badge
  • Override styles using your theme
  • Insert menus easily via a Gutenberg block or shortcode

Usage

  • Add menu items under Menu Items > Add New in the admin.
  • Assign items to a Menu Section (taxonomy).
  • Optionally mark as Special or add pricing quantities.
  • [simple_restaurant_menu_display] — shows full menu grouped by section.
  • [simple_restaurant_menu_display section=”breakfast”] — filters items to the “breakfast” section.
  • [simple_restaurant_menu_display special=”yes”] — shows only special items.
  • [simple_restaurant_menu_display section=”lunch” special=”yes”] — shows special lunch items.
  • Insert the Menu Block via the Gutenberg editor.

Template Overrides

You can override the HTML templates used to display menu items.

Template Files You Can Override

| Plugin File | Theme Override Location |
|———————————–|———————————————————————-|
| templates/simpremed-menu-item.php | your-theme/simple-restaurant-menu-display/simpremed-menu-item.php |
| templates/simpremed-menu-loop.php | your-theme/simple-restaurant-menu-display/simpremed-menu-loop.php |

How to Override

1. Create this directory in your theme:
/wp-content/themes/your-theme/simple-restaurant-menu-display/

  1. Copy the plugin template file(s) to your theme directory.

  2. Edit the templates in your theme as needed.

✅ If a template file exists in your theme, it will be used instead of the plugin default.

Filters

  • simpremed_currency_symbol — Change the currency symbol.
  • simpremed_template_part — Customize the logic for loading template parts.

Translation

This plugin is translation-ready and includes a .pot file in the /languages folder.

螢幕擷圖

  • Admin screen with repeater fields
  • Example frontend menu with styles
  • Customizer option for highlight color

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Simple Restaurant Menu

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Navigate to Menu Items to add your restaurant’s dishes
  4. Use the [simple_restaurant_menu_display] shortcode to embed menus in pages/posts

常見問題集

Can I add multiple prices for a single item?

Yes! Use the quantity/price repeater on the edit screen.

Can I style the menu to match my theme?

Yes, you can override simpremed-style.css in your theme folder.

Is it Gutenberg compatible?

Yes! A block is available to easily insert the menu shortcode.

使用者評論

2025 年 5 月 14 日
Lightweight plugin and easy to integrate. Override templates and styles to match with any theme.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Simple Restaurant Menu Display〉的開發相關工作。

參與者

將〈Simple Restaurant Menu Display〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release with CPT, taxonomy, repeater fields, and Gutenberg block.