Skip to content
Gravity Tables

Reference

Cheat sheet.

The 30 most-useful shortcode patterns on one scannable page. Click any code block to copy.

For deeper coverage, see the full shortcode reference.

Display

Bare bones

Show all entries, default columns

[gravity_table id="42"]

Pick columns

Explicit column order

[gravity_table id="42" columns="name,email,status,value"]

Mobile cards

Force card layout on every screen

[gravity_table id="42" mobile_layout="cards"]

Flip responsive (4.2.55)

First col becomes row label below 768px

[gravity_table id="42" responsive_mode="flip" flip_breakpoint="768"]

Default sort

Sort by latest first

[gravity_table id="42" sort="created:desc"]

Larger pages

50 rows per page

[gravity_table id="42" per_page="50"]

Filtering

User-only

Each user sees only their own rows

[gravity_table id="42" filter_user_owns="customer_id"]

Filter chips

User-toggleable filters per column

[gravity_table id="42" filters="status,plan,created"]

Hard-coded slice

Always filter to active

[gravity_table id="42" filter="status:active"]

Multi-value filter

Active OR trial

[gravity_table id="42" filter="status:active|trial"]

Saved-view URL

Deep-link to a pre-filtered table

/dashboard?gt_filter_status=qualified&gt_sort=value:desc

Search field scope

Restrict global search to N columns

[gravity_table id="42" search_field="name,email,sku"]

Permissions

Role-gated

Logged-in customers only

[gravity_table id="42" allowed_roles="customer,subscriber"]

Inline editing

Specific columns only

[gravity_table id="42" allow_edit="phone,address"]

Per-column permissions

Status only for managers

[gravity_table id="42" allow_edit="status,notes" edit_permissions="status:manager"]

Audit log

Record every cell edit + bulk action

[gravity_table id="42" audit_log="true"]

Operations

Bulk actions

Approve, export, delete

[gravity_table id="42" bulk="approve,export,delete"]

Bulk gated

Delete only by admins

[gravity_table id="42" bulk="approve,delete" bulk_permissions="delete:manage_options"]

Add Entry button

Frontend submission popup

[gravity_table id="42" allow_add="true"]

Auto-refresh

Re-poll every 30s, ETag-aware

[gravity_table id="42" auto_refresh="true" refresh_interval="30"]

Aggregations & exports

Totals row

Sum a numeric column

[gravity_table id="42" totals="amount"]

Group-by view

Roll up by status with counts + sums

[gravity_table id="42" group_by="status" totals="_sum_value"]

Top-N display (4.2.54)

Server-side leaderboard cap

[gravity_table id="42" top_n_count="10" top_n_column="value" top_n_direction="desc"]

CSV export only

Download button in toolbar

[gravity_table id="42" export="csv"]

All export formats

CSV + Excel + PDF, streamed past 25k rows

[gravity_table id="42" export="csv,excel,pdf"]

Charts (4.1.23+)

Bar chart

Sum of value by category

[gravity_chart id="42" type="bar" group_by="category" aggregate="sum" value="total"]

Donut chart

Share of total by status

[gravity_chart id="42" type="donut" group_by="status" aggregate="sum" value="total"]

Number tile

Single big number for stat strip

[gravity_chart id="42" type="number" aggregate="count" filter="status:paid" label="Paid orders"]

Maps (4.1.26+)

Marker map

Leaflet markers from lat/lng fields

[gravity_map id="42" lat_field="latitude" lng_field="longitude"]

Map with popups

Add a popup label per marker

[gravity_map id="42" lat_field="lat" lng_field="lng" popup_field="address" zoom="11"]

Want the long version?

Every parameter on the cheat sheet has a longer write-up in the full shortcode reference. The customer-portal guide stitches a dozen parameters into a real production shortcode.