Docs / Shortcode attribute reference

Shortcode attribute reference

Shortcode attribute reference

The [mm_table] shortcode renders a saved table. The only required attribute is id; everything else overrides a per-table default. Booleans accept yes or no.

Minimal usage

[mm_table id="42"]

Full attribute list

| Attribute | Type | Effect | |—|—|—| | id | integer | Required. The post ID of the saved table. | | search | yes / no | Show the search box above the table. | | sort | yes / no | Make header cells clickable to sort. | | pagination | yes / no | Paginate rows. Defaults to off; turn on for tables with more than a screen's worth. | | per_page | integer | Rows per page when pagination is on. | | per_page_select | yes / no | Show a rows-per-page dropdown next to the pager. | | sticky_header | yes / no | Keep the header row visible while scrolling. | | sticky_first_col | yes / no | Keep the leftmost column visible while horizontally scrolling. | | sticky_pagination | yes / no | Pin the pager to the bottom of the viewport. | | csv_export | yes / no | Show the CSV export button. | | caption | string | Override the table caption (rendered above the table). | | extra_classes | string | Extra CSS classes added to the wrapper. Only alphanumerics, dashes, and underscores are kept — other characters terminate the run. |

Example: a paginated table without the search box

[mm_table id="42" search="no" pagination="yes" per_page="25"]

Example: a sticky-header table for a long reference page

[mm_table id="42" sticky_header="yes" sticky_first_col="yes" search="yes"]

Pro attributes

With MMTable Pro active, the same shortcode accepts a wider attribute list: pdf, xlsx_export, inline_edit, server_pagination, col_resize, row_expand, and more. See the Pro docs index.