The Latest Files Module displays a compact gallery widget on any page of your site. It can show the most recent uploads, a random selection of images, or gallery cover thumbnails — making it useful for sidebars, footers, and homepage widget areas.
Use the shortcode [fwmg_mod_latest] to place the widget anywhere a shortcode is accepted — a page, post, or widget area. Parameters are passed directly inside the shortcode tag.
Example embedding the module to show 6 random images from a specific gallery:
[fwmg_mod_latest quantity="6" ordering="random" gallery="landscapes"]
The table below lists all available parameters you can pass to the shortcode.
| Parameter | Type | Default | Description |
|---|---|---|---|
| Module class suffix | Text | — | CSS class suffix appended to the module wrapper for custom styling. |
| Gallery | Select | — | Filter to files from a specific gallery. Leave empty to pull from all galleries. |
| Display | Radio | Files | What to display: Files (individual images) or Categories (gallery cover images). |
| Quantity | Number | — | Number of items to display in the widget. |
| Ordering | Select | Newest | Sort order: Newest first, Alphabetically, Random, or Manual order. |
| Featured filter | Select | All | Show All files, Only featured, or Hide featured. |

The visual appearance of the widget follows the active design template configured in FW Gallery. Appearance will differ between available templates.