The Shortcode
[table-info id=N field=<field-name> /]
Code language: JSON / JSON with Comments (json)
can be used to display table meta data in a post, page, or text widget. While editing the content into which the Shortcode is embedded, it serves as a placeholder for that meta information.
The Shortcode supports three parameters:
Examples for using this Shortcode
The table [table-info id=2 field=name /] was last modified at [table-info id=2 field=last_modified format=raw /] by [table-info id=2 field=last_editor /].
Code language: HTML, XML (xml)
will produce something similar to
The table Demo Table was last modified at 2024-11-12 15:20:21 by TobiasBg.
Code language: HTML, XML (xml)
There’s a also a Template Tag Function for this Shortcode available:
<?php tablepress_table_info( 'id=1&field=name' ); ?>
Code language: PHP (php)
It works exactly like the Template Tag Function, with the parameters from this section.