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