How to add table into site content?

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

  • use table shortcode,
  • use PHP code,
  • use table cell shortcode.

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.

Choose shortcode Data Tables Generator

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 PHP Code

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

Choose PHP code Data Tables Generator plugin

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.

Table Cell Shortcode

You can also display a value of a single sell of your table on your site.

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

Choose Cell shortcode data Tables Generator plugin

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%