{"id":112,"date":"2017-01-30T13:19:24","date_gmt":"2017-01-30T13:19:24","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/?p=112"},"modified":"2023-09-21T12:43:16","modified_gmt":"2023-09-21T12:43:16","slug":"shortcode","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"\n<p>The <b><code>[bundled_items]<\/code><\/b> shortcode should be used within product detail page. It shows the elements related to &#8220;bundle&#8221; type product and to the &#8220;Add to cart&#8221; button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1571\" height=\"526\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\" alt=\"\" class=\"wp-image-765\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg 1571w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1-300x100.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1-1024x343.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1-768x257.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1-1536x514.jpg 1536w\" sizes=\"auto, (max-width: 1571px) 100vw, 1571px\" \/><\/a><\/figure><\/div>\n\n\n<p>In case you want to show the products list but not &#8220;Add to cart&#8221; button, you must add &#8220;type&#8221; attribute to the shortcode and assign the &#8220;list&#8221; value.<br><code>[bundled_items type=\"list\"]<\/code><\/p>\n\n\n\n<p>On the contrary, if you want to show the bundle on any other page of your site, you have to use the shortcode&nbsp;<strong><code>[bundle_add_to_cart]&nbsp;<\/code><\/strong>followed by the product ID, for example,&nbsp;<code>[bundle_add_to_cart id=\"123\"]<\/code>.<\/p>\n\n\n\n<p>This shortcode prints the bundle form as shown below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1176\" height=\"575\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1.jpg\" alt=\"\" class=\"wp-image-766\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1.jpg 1176w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1-300x147.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1-1024x501.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/32.shortcode2-1-768x376.jpg 768w\" sizes=\"auto, (max-width: 1176px) 100vw, 1176px\" \/><\/a><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>The [bundled_items] shortcode should be used within product detail page. It shows the elements related to &#8220;bundle&#8221; type product and to the &#8220;Add to cart&#8221; button. In case you want to show the products list but not &#8220;Add to cart&#8221; button, you must add &#8220;type&#8221; attribute to the shortcode and assign the &#8220;list&#8221; value.[bundled_items type=&#8221;list&#8221;] &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Shortcodes<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-premium-version-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Shortcodes - YITH WooCommerce Product Bundles<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shortcodes - YITH WooCommerce Product Bundles\" \/>\n<meta property=\"og:description\" content=\"The [bundled_items] shortcode should be used within product detail page. It shows the elements related to &#8220;bundle&#8221; type product and to the &#8220;Add to cart&#8221; button. In case you want to show the products list but not &#8220;Add to cart&#8221; button, you must add &#8220;type&#8221; attribute to the shortcode and assign the &#8220;list&#8221; value.[bundled_items type=&quot;list&quot;] &hellip; Continue reading Shortcodes\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Product Bundles\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-30T13:19:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-21T12:43:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\",\"name\":\"Shortcodes - YITH WooCommerce Product Bundles\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\",\"datePublished\":\"2017-01-30T13:19:24+00:00\",\"dateModified\":\"2023-09-21T12:43:16+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/\",\"name\":\"YITH WooCommerce Product Bundles\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shortcodes - YITH WooCommerce Product Bundles","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/","og_locale":"en_US","og_type":"article","og_title":"Shortcodes - YITH WooCommerce Product Bundles","og_description":"The [bundled_items] shortcode should be used within product detail page. It shows the elements related to &#8220;bundle&#8221; type product and to the &#8220;Add to cart&#8221; button. In case you want to show the products list but not &#8220;Add to cart&#8221; button, you must add &#8220;type&#8221; attribute to the shortcode and assign the &#8220;list&#8221; value.[bundled_items type=\"list\"] &hellip; Continue reading Shortcodes","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/","og_site_name":"YITH WooCommerce Product Bundles","article_published_time":"2017-01-30T13:19:24+00:00","article_modified_time":"2023-09-21T12:43:16+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/","name":"Shortcodes - YITH WooCommerce Product Bundles","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg","datePublished":"2017-01-30T13:19:24+00:00","dateModified":"2023-09-21T12:43:16+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-content\/uploads\/sites\/264\/2023\/09\/31.shortcode1-1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/premium-version-settings\/shortcode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/"},{"@type":"ListItem","position":2,"name":"Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/","name":"YITH WooCommerce Product Bundles","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":8,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":817,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/posts\/112\/revisions\/817"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-product-bundles\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}