Title: The Shortcode [table-info id=N /]
Author: Tobias Bäthge
Published: December 2, 2012
Last modified: May 14, 2025

---

Back to: [Frequently Asked Questions](https://tablepress.org/faq/?output_format=md)•
[Documentation](https://tablepress.org/documentation/?output_format=md)

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

The [Shortcode](https://developer.wordpress.org/apis/shortcode/)

    ```language-plaintext
    [table-info id=N field=<field-name> /]Code language: plaintext (plaintext)
    ```

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:

  |  Module | Slug |  | Configuration parameter | Name | Description | Type | Default value |  
   |  Table Info | table-info |  | id | Table ID | The ID of the table to show (can be seen on the “All Tables” or the “Edit” screen). | string | _none_ (required) |  
 |  Table Info | table-info |  | field | Meta Field Name | The name of a meta field.
  Possible values 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`. `last_editor`: The author who last modified the table with ID `id`. | string | _none_ (required) |  
 |  Table Info | table-info |  | format | Meta Field Output Format | Only applies to the default field `last_modified`: If the `format` parameter is set to `raw`, a date-time string will be returned, otherwise a pretty string. The format `human` can be used to show a text like “5 hours ago”, the format values `date` and `time` show just the date or time of the last modification, respectively. | string | `""` (empty string) |

**Examples for using this Shortcode**

    ```language-plaintext
    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: plaintext (plaintext)
    ```

will produce something similar to

    ```language-plaintext
    The table Demo Table was last modified at 2025-05-16 10:30:00 by TobiasBg.Code language: plaintext (plaintext)
    ```

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

    ```php
    <?php tablepress_table_info( 'id=1&field=name' ); ?>Code language: PHP (php)
    ```

It works exactly like the [Template Tag Function](https://tablepress.org/faq/documentation-template-tag-functions/),
with the parameters from this section.