Press Enter to search or Esc to close

FW Food Menu – Documentation

Shortcodes Reference

FW Food Menu tutorial for WordPress

Shortcodes Reference

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.

[fwfm_menu] and [fwfm_categories]

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"

Common Examples

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"]

Using add_params

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:

  • meals_per_page — number of meals shown per page
  • show_price — show or hide the meal price (on / off)
  • show_description — show or hide the meal description (on / off)
  • show_image — show or hide the meal image (on / off)
  • ordering — sort meals by title, ordering, or date
  • design — specify a design template by name

Any setting available in FW Food Menu → Settings can be passed through add_params using the same syntax.


Was this article helpful?
Previous
Nutritional Info & Calories
Next
Content Translation
  • Client Login

    Restore password
  • New Registration

or
Make sure @fastw3b.com email domain is white-listed in your email client to restore password, verify registration, get order confirmations, etc.