Select plugin version:
Shortcode
The WordPress shortcode allows you to insert tables into the WordPress editor content and into shortcode fields of Page Builders.
Shortcode
[tablefieldpro field="" post_id="" table_class=""]
Parameters
-
field=""
- Optional: no
- Type: string
- Description:
The table field name or field key
-
post_id=""
- Optional: yes
- Type: mixed
- Default: Defaults to false, which will use the current post.
- Description:
The post ID where the value is saved.
-
post-id="false" current post post-id="1" post ID = 1 post-id="user_2" user ID = 2 post-id="category_3" category term ID = 3 post-id="event_4" event (custom taxonomy) term ID = 4 post-id="option" options page post-id="options" same as above
-
table_class=""
- Optional: yes
- Type: string
- Description:
A CSS class name used for the table HTML element.
Get table from current post, page or posttype
[tablefieldpro field=""]
Get table from another post
[tablefieldpro field="" post_id="123"]
Get table from option page
[tablefieldpro field="" post_id="option"]