{"id":24288,"date":"2026-11-13T13:55:35","date_gmt":"2026-11-13T13:55:35","guid":{"rendered":"https:\/\/wptablebuilder.com\/docs\/embed-table-shortcode\/"},"modified":"2026-11-13T14:58:15","modified_gmt":"2026-11-13T14:58:15","password":"","slug":"embed-table-shortcode","status":"publish","type":"docs","link":"https:\/\/wptablebuilder.com\/it\/docs\/embed-table-shortcode\/","title":{"rendered":"Come incorporare una tabella di WP Table Builder con uno shortcode"},"content":{"rendered":"\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-d5c0682e wp-block-group-is-layout-constrained\" style=\"border-top-left-radius:0px;border-top-right-radius:6px;border-bottom-left-radius:0px;border-bottom-right-radius:6px;border-left-color:#2563eb;border-left-width:3px;background-color:#f4f7fb;margin-bottom:14px;padding-top:20px;padding-right:24px;padding-bottom:20px;padding-left:24px\">\n<p class=\"has-text-color wp-block-paragraph\" style=\"color:#2563eb;margin-top:0;margin-bottom:10px;font-size:11px;font-style:normal;font-weight:600;letter-spacing:0.08em;text-transform:uppercase\">Quick Answer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"margin-top:0;margin-bottom:14px;font-size:clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.106), 15px);line-height:1.65\">Every WP Table Builder table has a shortcode in the format <code>[wptb id=123]<\/code>, where 123 is the table ID. Save the table, click <strong>Embed<\/strong> in the builder, click <strong>Copy<\/strong>, then paste the shortcode into any post, page, widget or page builder that accepts shortcodes. You can also copy the shortcode from <strong>WP Table Builder > All Tables<\/strong>.<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A shortcode is a short piece of text in square brackets that WordPress replaces with content when the page loads. The WP Table Builder shortcode is the universal way to show a table anywhere on your site, including places that have no dedicated block or widget.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_86d68fbd-0d3c-4e3f-881a-c9029a022d48\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Item<\/th><th>Details<\/th><\/tr><\/thead><tbody><tr><td><strong>Plan<\/strong><\/td><td>Free and Pro<\/td><\/tr><tr><td><strong>A saved table<\/strong><\/td><td>The shortcode appears after the first save<\/td><\/tr><tr><td><strong>Time needed<\/strong><\/td><td>Under 1 minute<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_525bc2e8-88e2-4c13-80dd-b71665fae4bc\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Step 1: Copy the shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>From the builder:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click <strong>Save<\/strong> if the table is new or has unsaved changes.<\/li>\n\n\n\n<li>Click <strong>Embed<\/strong> in the top bar.<\/li>\n\n\n\n<li>Click <strong>Copy<\/strong> next to the shortcode.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"722\" src=\"https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode.jpg\" alt=\"WP Table Builder Embed this table dialog showing the wptb id shortcode, the Copy button, and Gutenberg, Elementor and Divi options\" class=\"wp-image-24287\" srcset=\"https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode.jpg 1440w, https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode-300x150.jpg 300w, https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode-1024x513.jpg 1024w, https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode-768x385.jpg 768w, https:\/\/wptablebuilder.com\/wp-content\/uploads\/2026\/11\/wptb-embed-dialog-shortcode-18x9.jpg 18w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>From the table list:<\/strong> go to <strong>WP Table Builder > All Tables<\/strong> and click the copy icon next to the table&#8217;s shortcode. The shortcode is also shown at the bottom right of the builder.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_8ace0af7-cb51-4a31-8eaf-581ae05966a4\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Step 2: Paste the shortcode<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Where<\/th><th>How<\/th><\/tr><\/thead><tbody><tr><td><strong>Block editor (Gutenberg)<\/strong><\/td><td>Add a <strong>Shortcode<\/strong> block and paste the shortcode, or use the WP Table Builder block instead. See <a href=\"https:\/\/wptablebuilder.com\/docs\/wp-table-builder-block-editor-gutenberg\/\">How to Add a WP Table Builder Table in the Gutenberg Block Editor<\/a>.<\/td><\/tr><tr><td><strong>Classic Editor<\/strong><\/td><td>Paste the shortcode on its own line in the Visual or Text tab<\/td><\/tr><tr><td><strong>Widgets<\/strong><\/td><td>Add a <strong>Shortcode<\/strong> widget (or a Text widget) to a sidebar or footer and paste the shortcode<\/td><\/tr><tr><td><strong>Elementor<\/strong><\/td><td>Use the WP Table Builder widget, or the Shortcode widget. See <a href=\"https:\/\/wptablebuilder.com\/docs\/add-table-elementor\/\">How to Add a WP Table Builder Table in Elementor<\/a>.<\/td><\/tr><tr><td><strong>Divi<\/strong><\/td><td>Use the WP Table Builder module, or a Code or Text module. See <a href=\"https:\/\/wptablebuilder.com\/docs\/adding-tables-in-divi\/\">How to Use &#8216;WP Table Builder&#8217; with Divi<\/a>.<\/td><\/tr><tr><td><strong>Other page builders<\/strong><\/td><td>Any shortcode or text element that runs shortcodes, for example in Beaver Builder, Bricks, Oxygen or Kadence<\/td><\/tr><tr><td><strong>Inside another WP Table Builder table<\/strong><\/td><td>Add a <a href=\"https:\/\/wptablebuilder.com\/docs\/shortcode\/\">Shortcode element<\/a> to a cell<\/td><\/tr><tr><td><strong>Theme templates (PHP)<\/strong><\/td><td><code>&lt;?php echo do_shortcode('[wptb id=123]'); ?&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_7fa7b501-e93d-45f5-9e57-c8837ecf78e3\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Step 3: Check the table on your site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Preview or publish the page. One table can appear on as many pages as you like. When you edit and save the table in WP Table Builder, every page that uses the shortcode updates automatically.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_d378e812-3a1a-44f5-bcef-68db13a4e766\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Preview a table without adding it to a page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Click <strong>Preview<\/strong> in the builder top bar, or <strong>Open<\/strong> next to <strong>Preview link<\/strong> in the Embed dialog, to see the table on a front-end preview page with your theme styles.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_e05483e3-9eee-47b0-a6d8-d8df2d310cd5\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n<div class=\"wp-block-ub-content-toggle wp-block-ub-content-toggle-block\" id=\"ub-content-toggle-block-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" data-mobilecollapse=\"false\" data-desktopcollapse=\"true\" data-preventcollapse=\"false\" data-showonlyone=\"false\">\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-0-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" tabindex=\"0\">\n\t\t\t<p class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" style=\"color: #000000; \"><strong>What is the WP Table Builder shortcode?<\/strong><\/p>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down open\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"true\" class=\"wp-block-ub-content-toggle-accordion-content-wrap\" id=\"ub-content-toggle-panel-0-2aab616c-4858-4529-85aa-cf7e3ba41fc0\">\n\n<p class=\"wp-block-paragraph\">It is [wptb id=123], where 123 is the table ID. Paste it into any post, page or widget to display the table.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-1-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" tabindex=\"0\">\n\t\t\t<p class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" style=\"color: #000000; \"><strong>Where do I find a table&#8217;s shortcode?<\/strong><\/p>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-1-2aab616c-4858-4529-85aa-cf7e3ba41fc0\">\n\n<p class=\"wp-block-paragraph\">Click Embed in the builder, look at the bottom right of the builder, or check the Shortcode column on WP Table Builder &gt; All Tables.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-2-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" tabindex=\"0\">\n\t\t\t<p class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" style=\"color: #000000; \"><strong>Can I use the same table on several pages?<\/strong><\/p>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-2-2aab616c-4858-4529-85aa-cf7e3ba41fc0\">\n\n<p class=\"wp-block-paragraph\">Yes. Paste the same shortcode on every page. Edits to the table update everywhere.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-3-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" tabindex=\"0\">\n\t\t\t<p class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" style=\"color: #000000; \"><strong>My shortcode shows as plain text. What is wrong?<\/strong><\/p>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-3-2aab616c-4858-4529-85aa-cf7e3ba41fc0\">\n\n<p class=\"wp-block-paragraph\">The field you pasted into does not run shortcodes. Use a Shortcode block or widget, check the table ID exists and is not in the Trash, and make sure WP Table Builder is active.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-4-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" tabindex=\"0\">\n\t\t\t<p class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-2aab616c-4858-4529-85aa-cf7e3ba41fc0\" style=\"color: #000000; \"><strong>Does the shortcode work with page caching?<\/strong><\/p>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-4-2aab616c-4858-4529-85aa-cf7e3ba41fc0\">\n\n<p class=\"wp-block-paragraph\">Yes. WP Table Builder clears the cached version of a table when you update it, but you may need to clear your page cache plugin or CDN to see changes immediately.<\/p>\n\n<\/div>\n\t\t<\/div>\n<\/div>\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_1e6a471a-b343-49ee-be67-afe671d0134c\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 1px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Related docs<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wptablebuilder.com\/docs\/wp-table-builder-block-editor-gutenberg\/\">How to Add a WP Table Builder Table in the Gutenberg Block Editor<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wptablebuilder.com\/docs\/add-table-elementor\/\">How to Add a WP Table Builder Table in Elementor<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wptablebuilder.com\/docs\/adding-tables-in-divi\/\">How to Use &#8216;WP Table Builder&#8217; with Divi<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wptablebuilder.com\/docs\/shortcode\/\">Shortcode<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wptablebuilder.com\/docs\/manage-tables\/\">How to Manage Tables in WP Table Builder (Search, Duplicate, Trash, Restore)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Copy the [wptb id=123] shortcode and add a table anywhere on your WordPress site.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[102],"doc_tag":[],"class_list":["post-24288","docs","type-docs","status-publish","hentry","doc_category-embedding-integrations"],"year_month":"2026-11","word_count":584,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Istiak Rayhan","author_nicename":"wpx_roadtobl","author_url":"https:\/\/wptablebuilder.com\/it\/author\/wpx_roadtobl\/"},"doc_category_info":[{"term_name":"Embedding &amp; Integrations","term_url":"https:\/\/wptablebuilder.com\/it\/docs-category\/embedding-integrations\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/docs\/24288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/comments?post=24288"}],"version-history":[{"count":1,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/docs\/24288\/revisions"}],"predecessor-version":[{"id":24368,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/docs\/24288\/revisions\/24368"}],"wp:attachment":[{"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/media?parent=24288"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/doc_category?post=24288"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wptablebuilder.com\/it\/wp-json\/wp\/v2\/doc_tag?post=24288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}