Docs / MMTable / Shortcode attribute reference

Shortcode attribute reference

Shortcode attribute reference

The shortcode renders a saved table. The only required attribute is id; every other attribute overrides that table’s saved settings for that one embed. Booleans accept on/off, yes/no, true/false, or 1/0. Leave an attribute out to keep the setting chosen in the table editor.

Minimal usage

Full attribute list

Attribute Type Effect
id integer Required. The ID shown on the table’s edit screen.
search on / off Show the search box above the table.
sort on / off Make header cells clickable to sort.
pagination on / off Paginate rows. paging is accepted as an alias.
per_page integer Rows per page when pagination is on.
per_page_select on / off Show the rows-per-page dropdown next to the pager.
sticky_header on / off Keep the header row visible while scrolling.
sticky_first_col on / off Keep the first column visible while scrolling horizontally.
csv_export on / off Show the CSV download button.
print on / off Show the Print button.
copy on / off Show the Copy button.
caption string Override the table caption.
extra_classes string Extra CSS classes added to the wrapper. Alphanumerics, dashes, and underscores only.
export off only Hide every download button (CSV, and Excel/PDF with Pro).
tools off only Hide the whole toolbar: downloads, Print, and Copy.

Example: no search box, 25 rows per page

Example: a bare read-only table

Pro attributes

With MMTable Pro active, the same shortcode also accepts:

Attribute Type Effect
excel on / off Show the Excel (.xlsx) download button. xlsx_export is accepted as an alias.
pdf on / off Show the PDF download button.
filters off only Hide the column filter bar. Filters are configured per column in the editor (column menu → Filter tab), so there is nothing for on to enable.