Docs / Template library — save and reuse layouts

Template library — save and reuse layouts

Template library — save and reuse layouts

If you build a lot of similar tables — pricing tables, feature comparisons, monthly reports — templates save the column structure, headers, styling, and Pro settings so you can spin up a new table from the same starting point in one click.

What templates store

Templates capture:

  • Column count, header structure (group headers, header column).
  • Column types and number formatting.
  • Conditional formatting rules.
  • Theme preset and custom-theme values.
  • Pro toggle settings: inline edit, server pagination, column resize, sticky options.
  • Shortcode/widget per-embed defaults.

Templates do NOT store cell content. The whole point is to reuse the shell, not the data.

Save a table as a template

  1. Build a table the way you want it — column types, headers, formatting, CF rules, theme.
  2. Open the editor toolbar's Templates menu.
  3. Click Save as template.
  4. Give it a name like "Quarterly report" or "Feature comparison". Save.

The template lives in WordPress options under your installation's templates list. It's shared across all admins on the site.

Apply a template to a new table

  1. Create a new MMTable via MMTables → Add New.
  2. Open the Templates menu in the toolbar.
  3. Click any saved template name to apply it.
  4. The empty table now has the template's structure. Type your data into the cells.

Predefined templates

Pro ships with a few starter templates you can apply or use as a learning tool: Feature Comparison, Pricing Table, Quarterly Report. They appear in the same Templates menu and are read-only — you can apply them but not delete.

Delete a template

In the Templates menu, click the trash icon next to any user-saved template. You'll be asked to confirm. Predefined templates can't be deleted.

Sharing templates between sites

Not built in yet. Templates are stored locally in wp_options under the mmt_templates key. To migrate, export the value via WP-CLI and import it on the destination site:

wp option get mmt_templates --format=json > templates.json
# on the new site:
wp option update mmt_templates "$(cat templates.json)" --format=json