How to add table into site content?

There are three different ways to add table to your site:

  • use Table shortcode,
  • Value shortcode,
  • Cell shortcode,
  • History shortcode,
  • table PHP code.

Table shortcode and PHP code can be found on the left navigation menu if you click “Tables”. For each table its own shortcode and PHP code are written here.

Data Tables Shortcode and PHP code
 

Table Shortcode

You can also find table shortcode when you open table to change table settings. Simply choose Table Shortcode from the dropdown menu and copy the code.

Table Shortcode

Copy and paste the shortcode into your post or page and Data Tables Generator plugin will automatically create the table on your page using the settings you choose above.

Important! Shortcode must be inserted in a text editor page, and not in the visual.

Insert the shortcode in the text editor
 

Table Value Shortcode

With Value Shortcode you can display a value of single table cell in the site content.

Table Value Shortcode
 

Table Cell Shortcode

You can also display a table with single cell in the site content.

To do this choose Table Cell Shortcode from the dropdown menu and copy the code.

Table Cell Shortcode
 

Table History Shortcode

With History Shortcode you have ability to display an individual table data for each autorized user. Users can change the table data through editable fields on frontend. All user tables can be shown on Table History tab (PRO feature).

Table History Shortcode

Check more documentation about Table History PRO feature.
 

Table PHP Code

If you want to use PHP code – сhoose Table PHP code from the dropdown menu and copy the code.

Table PHP shortcode

In general php code can be inserted at any place of the page code – to display exactly in this place, for example in the header or footer of the page. Besides it can be inserted in the code of template of the theme – to display on all pages.

Similarly to usual shortcode paste it into your post or page and set a coordinates of a cell you need to display, Data Tables Generator plugin will automatically display data from that cell.

Categories
Latest Articles
Get plugins bundle today and save over 80%