Documentation
The Shortcode [table-info id=N /]

The Shortcode [table-info id=N field="<field-name>"/] can be used to display table meta data in a post, page, or text widget.

You can show this data in the same way as tables by using the Shortcode

[table-info id=N field="<field-name>" /]

The Shortcode has three parameters:

id (string) (required)
The ID of the table that has the Custom Data Field
field (string) (required)
The name of a meta field (see below)
format
only possible value: raw. Only applies to the default field last_modified and will return the raw datetime format instead of the pretty string.

Possible values for field are:

name
The name of the table with ID id
description
The description of the table with ID id
last_modified
The time of the last modification of the table with ID id, if the format parameter is set to raw, a datetime string will be returned, otherwise a pretty string
last_editor
The author who last modified the table with ID id

Example of three Shortcodes in action (i.e. in a post or on a page near a table):

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" /].

will produce something similar to

The table Demo Table was last modified at 2015-09-30 15:20:21 by TobiasBg.

There’s a also a Template Tag Function for this Shortcode available:

<?php tablepress_table_info( 'id=1&field=name' ); ?>

It works exactly as the Template Tag Function described below, with the parameters from this section.

Top