Main Menu

Press Enter to search or Esc to close

FW Food Menu – Documentation

Meal Category Module

FW Food Menu tutorial for WordPress

Meal Category Module

The FWFM Meal Category Module displays items from one or more specific menu categories on any page or widget area of your WordPress site. Unlike the full menu view, which renders all categories at once, this module focuses on a targeted selection — making it well suited for homepages, landing pages, or sidebars where you want to highlight a particular set of items.

Use Cases

  • Homepage featured category — surface a "Today's Specials" or "Chef's Picks" category directly on the homepage without sending visitors to the full menu.
  • Sidebar category preview — show a compact "Starters" or "Popular Items" category card alongside other page content.
  • Landing page promotions — embed a seasonal or promotional category on a dedicated page using a shortcode.

Embedding via Shortcode

Place the following shortcode anywhere in a post, page, or block:

[fwfm_mod_mealcategory]

Shortcode parameters are added as attributes. For example:

[fwfm_mod_mealcategory category="12,15" template="coffee"]

Embedding via Widget

To add the module through the WordPress widget interface, go to Appearance → Widgets (or use the block-based widget editor) and locate the FWFM Meal Category widget. Drag it to your desired widget area, then configure the parameters directly in the widget settings panel.

Parameters

Parameter Type Default Description
template Select The design template used to render the output. Choose from any installed FW Food Menu design template plugins (for example, Coffee or Sushi) or the default layout.
category Multi-select / comma-separated IDs One or more category IDs to display. When multiple categories are selected, items from all of them are merged and shown together.
module_class_suffix Text A CSS class appended to the module wrapper element, allowing targeted custom styling.

How It Works

The module retrieves published meal items for the selected categories and renders them using the chosen design template. The output mirrors the appearance of those categories in the main menu view, but is limited strictly to your selection. If a selected category contains no published items, nothing is rendered for that category.

Notes

  • Category IDs can be found by browsing your menu categories in the FW Food Menu admin panel.
  • The template parameter must match an installed design template plugin; if left unset, the default layout is used.
  • Multiple categories can be passed as a comma-separated list in the shortcode attribute or selected individually in the widget settings.

Was this article helpful?
Previous
Delivery
Next
Understanding the Dashboard
  • 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.