FW Food Menu displays your menu on any WordPress page or post using shortcodes. Insert a shortcode directly into page content, or use the Gutenberg block editor as a visual alternative.
Both shortcodes are identical and display the full food menu, including categories and meals. [fwfm_menu] is the recommended alias.
| Parameter | Description | Example value |
|---|---|---|
| category_id | Display only the specified categories, identified by their numeric IDs. Separate multiple IDs with commas. | category_id="1,2,3" |
| categories | Display categories by name. Names are looked up in the database. Separate multiple names with a pipe character. | categories="Starters|Mains" |
| plugins / addons | Enable or disable specific plugins for this shortcode instance. Use pipe-separated name:on or name:off pairs. Both parameter names are interchangeable. |
plugins="cart:on|vote:off" |
| add_params | Pass any FW Food Menu setting directly in the shortcode. Use pipe-separated param:value pairs. Accepts the same options available in FW Food Menu → Settings. |
add_params="show_price:on" |
Display the full menu with no filters:
[fwfm_menu]
Display a single category by ID:
[fwfm_menu category_id="3"]
Display multiple categories by name:
[fwfm_menu categories="Starters|Mains|Desserts"]
Display specific categories with the shopping cart plugin enabled:
[fwfm_menu category_id="1,2" plugins="cart:on"]
Display the menu with prices shown, descriptions hidden, and 20 meals per page:
[fwfm_menu add_params="show_price:on|show_description:off|meals_per_page:20"]
The add_params parameter lets you override any setting from FW Food Menu → Settings on a per-shortcode basis. Use on / off for toggle settings and a number for numeric values.
Common add_params values:
on / off)on / off)on / off)title, ordering, or dateAny setting available in FW Food Menu → Settings can be passed through add_params using the same syntax.