{"id":50605,"date":"2026-03-20T10:51:52","date_gmt":"2026-03-20T10:51:52","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=50605"},"modified":"2026-03-20T10:51:53","modified_gmt":"2026-03-20T10:51:53","slug":"woocommerce-macros-guide","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/","title":{"rendered":"Macros Guide for WooCommerce"},"content":{"rendered":"\n<p>With the <em>JetEngine<\/em> plugin, such <em>WooCommerce<\/em> macros are available: \u201cAdd to Cart Text,\u201d \u201cWC Product Title,\u201d \u201cWC Products in Cart,\u201d \u201cWC Products On Sale,\u201d \u201cWC Purchased Products.\u201c<\/p>\n\n\n\n<p>Like other <em>JetEngine<\/em> macros, these can be configured using the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/jetengine-dashboard-settings-overview\/#macros-generator\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Macros Generator<\/strong><\/a>. Below, we describe their possible use cases.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"macros-in-products-listing-template-or-single-page\">Macros in Products Listing Template or Single Page<\/h2>\n\n\n\n<p>The first two macros can be used in the products <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-template-in-elementor-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing template<\/strong><\/a> or the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetwoobuilder\/jetwoobuilder-how-to-create-and-set-a-single-product-page-template\/\" target=\"_blank\" rel=\"noreferrer noopener\">Product Single page<\/a>.<\/p>\n\n\n\n<p>For example, to create a listing template, we proceed to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components<\/em><\/strong> tab and press the \u201c<strong>Add New Item<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the <strong>Setup Listing Item<\/strong> pop-up, we pick the \u201cPosts\u201d option as the <strong>Listing source<\/strong>, set \u201cProducts\u201d in the <strong>From post type<\/strong> field, enter the <strong>Listing item name<\/strong>, and choose the <strong>Listing view<\/strong> (for this case, we choose \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-listing-template-for-post-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elementor<\/a>\u201d).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine.webp\" alt=\"woocommerce products listing template creation with jetengine\" class=\"wp-image-50610\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, we display the \u201cFeatured image\u201d with the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-dynamic-image-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Image<\/strong><\/a> and the product \u201cTitle\u201d with the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets.webp\" alt=\"product image and text display with the jetengine dynamic widgets\" class=\"wp-image-50606\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/product-image-and-text-display-with-the-jetengine-dynamic-widgets-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Also, you can check the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-build-woocommerce-products-listings-with-the-dynamic-tag\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Build WooCommerce Products Listings with the Dynamic Tag<\/strong><\/a> tutorial to learn how to create a product listing with the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Query Builder<\/strong><\/a> source.<\/p>\n\n\n\n<p>The following macros can be used in the <em>WooCommerce<\/em> Products listing template or single page:<\/p>\n\n\n\n<ul>\n<li><strong>%add_to_cart_text% <\/strong>(\u201c<strong>Add to Cart Text<\/strong>\u201d) \u2014 returns the text displayed on the \u201c<strong>Add to Cart<\/strong>\u201d button on <em>WooCommerce<\/em> products (\u2018Add to Cart,\u2019 \u2018Read More,\u2019 etc.). Can be pasted in the <strong>Label <\/strong>field of the <strong>Dynamic Link<\/strong> widget. If the <strong>Source <\/strong>of the <strong>Dynamic Link <\/strong>is set as \u201cAdd to Cart,\u201d it will function as an \u201c<strong>Add to Cart<\/strong>\u201d button;<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro.webp\" alt=\"woocommerce products listing template creation with jetengine\" class=\"wp-image-50611\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/add-to-cart-text-woocommerce-macro-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<ul>\n<li><strong>%wc_product_title%<\/strong> (\u201c<strong>WC Product Title<\/strong>\u201d) \u2014 returns the title of a <em>WooCommerce<\/em> product and can be pasted into the <strong>Label<\/strong> field of the <strong>Dynamic Link<\/strong>. Alternatively, you can use the %title% macro, or click the \u201c<strong>Dynamic Tags<\/strong>\u201d (database) icon, select \u201cWooCommerce Product Field,\u201d and choose \u201cTitle\u201d in the settings pop-up.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro.webp\" alt=\"wc product title woocommerce macro\" class=\"wp-image-50608\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-title-woocommerce-macro-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"macros-in-wc-product-query\">Macros in WC Product Query<\/h2>\n\n\n\n<p>Other <em>WooCommerce<\/em> macros can be used in the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-wc-product-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">WC Product Query<\/a>\u201d created with the <em>JetEngine<\/em> <strong>Query Builder<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder.webp\" alt=\"wc product query in jetengine query builder\" class=\"wp-image-50607\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/wc-product-query-in-jetengine-query-builder-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Scroll down to the <strong><em>WC Product Query &gt; General<\/em> <\/strong>tab and press the \u201c<strong>database<\/strong>\u201d icon near the <strong>Include <\/strong>field to open the macros list:<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query.webp\" alt=\"woocommerce macros for the wc product query\" class=\"wp-image-50609\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-macros-for-the-wc-product-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p><\/p>\n\n\n\n<ul>\n<li><strong>%wc_get_products_in_cart% <\/strong>(<strong>\u201cWC Products in Cart\u201d<\/strong>) \u2014 returns the IDs of products that are added to the cart;<\/li>\n\n\n\n<li><strong>%wc_get_products_on_sale% <\/strong>(<strong>\u201cWC Products On Sale\u201d<\/strong>) \u2014 fetches the IDs of all <em>WooCommerce<\/em> products currently on sale;<\/li>\n\n\n\n<li><strong>%wc_purchased_products%<\/strong> (\u201c<strong>WC Purchased Products<\/strong>\u201c) \u2014 retrieves a list of products that a logged-in user has previously purchased.<\/li>\n<\/ul>\n\n\n\n<p>That\u2019s all. Now you know how <em>WooCommerce<\/em> macros work and how to use them in <em>JetEngine<\/em> listings, single product pages, and queries to display dynamic product data in WordPress. &nbsp;Additionally, you can check the general&nbsp;<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/macros-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Macros Guide<\/strong><\/a>&nbsp;for&nbsp;<em>JetEngine<\/em>&nbsp;and other Crocoblock plugins.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[530],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Macros Guide \u2014 WooCommerce | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Macros Guide \u2014 WooCommerce | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-20T10:51:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/\",\"name\":\"Macros Guide \u2014 WooCommerce | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-03-20T10:51:52+00:00\",\"dateModified\":\"2026-03-20T10:51:53+00:00\",\"description\":\"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Macros Guide for WooCommerce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Macros Guide \u2014 WooCommerce | Crocoblock","description":"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.","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:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/","og_locale":"en_US","og_type":"article","og_title":"Macros Guide \u2014 WooCommerce | Crocoblock","og_description":"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/","og_site_name":"Help Center","article_modified_time":"2026-03-20T10:51:53+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/woocommerce-products-listing-template-creation-with-jetengine.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/","url":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/","name":"Macros Guide \u2014 WooCommerce | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-03-20T10:51:52+00:00","dateModified":"2026-03-20T10:51:53+00:00","description":"Learn how WooCommerce macros work and how to use them in JetEngine listings, single product pages, and queries to display dynamic product data in WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/articles\/woocommerce-macros-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"Macros Guide for WooCommerce"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/50605"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=50605"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=50605"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=50605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}