{"id":9445,"date":"2024-02-06T16:12:55","date_gmt":"2024-02-06T14:12:55","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=9445"},"modified":"2025-05-14T13:38:45","modified_gmt":"2025-05-14T10:38:45","slug":"dynamic-data","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/theme-blocks\/dynamic-data\/","title":{"rendered":"Dynamic Data"},"content":{"rendered":"\n<p>The\u00a0<strong>Dynamic Data<\/strong>\u00a0block helps you display content from different sources directly in the Gutenberg editor. It\u2019s perfect for creating archive and single templates using Blocksy\u2019s\u00a0<strong>Content Blocks<\/strong>\u00a0feature. The block works especially well inside custom layouts built with Content Blocks, where you can insert dynamic data into your <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/modules\/content-blocks-custom-archive-template\/\" target=\"_blank\" rel=\"noreferrer noopener\">archive<\/a> or <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/modules\/content-blocks-custom-single-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">single<\/a> post templates.<\/p>\n\n\n\n<p>You can design and build customised layouts for archive pages and singular content, by seamlessly pulling in data from sources such as:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Core Meta Data Fields<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong>\u00a0\u2013 Displays the post\/page title.<\/li>\n\n\n\n<li><strong>Excerpt<\/strong>\u00a0\u2013 Adds a short preview of the content.<\/li>\n\n\n\n<li><strong>Post Date<\/strong>\u00a0\u2013 Shows the publication date.<\/li>\n\n\n\n<li><strong>Comments<\/strong>\u00a0\u2013 Displays the number of comments.<\/li>\n\n\n\n<li><strong>Author &amp; Avatar<\/strong>\u00a0\u2013 Shows the author\u2019s name and profile picture.<\/li>\n\n\n\n<li><strong>Featured Image<\/strong>\u00a0\u2013 Displays the main image of the post.<\/li>\n\n\n\n<li><strong>Terms<\/strong>\u00a0\u2013 Shows categories, tags, or other taxonomy terms.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">WooCommerce Fields<\/h2>\n\n\n\n<p>If you\u2019re using WooCommerce, you can also display:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Price<\/strong><\/li>\n\n\n\n<li><strong>Rating<\/strong><\/li>\n\n\n\n<li><strong>Stock Status<\/strong><\/li>\n\n\n\n<li><strong>SKU<\/strong><\/li>\n\n\n\n<li><strong>Brands<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Custom Fields<\/h2>\n\n\n\n<p>With <strong>Blocksy Pro<\/strong> (Professional or Agency), the Dynamic Data block also supports data from popular custom field plugins:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.advancedcustomfields.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Advanced Custom Fields (ACF)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/acpt.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">ACPT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/metabox.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">MetaBox<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pods.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Pods<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/toolset.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Toolset<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Jet Engine<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group has-palette-color-6-background-color has-background is-layout-constrained wp-block-group-is-layout-constrained\">\n<p><strong>Attention!<\/strong><\/p>\n\n\n\n<p>Make sure the&nbsp;<strong>Dynamic Data<\/strong>&nbsp;module is enabled from the \u201cPost Types Extra\u201d extension in the Blocksy dashboard. Without this, custom fields won\u2019t show up.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Additional integration with the Advanced Posts block<\/h2>\n\n\n\n<p>The Dynamic Data block and <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/theme-blocks\/advanced-posts\/\" data-type=\"link\" data-id=\"https:\/\/creativethemes.com\/blocksy\/docs\/theme-blocks\/advanced-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Advanced Posts block<\/a> form a strategic partnership within the Blocksy ecosystem, enabling the construction of highly customised post query loops throughout your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional integration with the Advanced Taxonomies block<\/h2>\n\n\n\n<p>When used alongside the\u00a0<strong>Advanced Taxonomies<\/strong>\u00a0block, the Dynamic Data block unlocks extra data sources specific to taxonomy terms. These include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Term Title<\/strong>\u00a0\u2013 Displays the name of the taxonomy term.<\/li>\n\n\n\n<li><strong>Term Description<\/strong>\u00a0\u2013 Shows the description text associated with the term.<\/li>\n\n\n\n<li><strong>Term Image<\/strong>\u00a0\u2013 Displays the featured image for the term. Works best when used with Blocksy Pro\u2019s\u00a0<strong><a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/extensions\/post-types-extra\/\">Post Types Extra<\/a><\/strong>\u00a0extension and its\u00a0<strong>Taxonomy Customisations<\/strong>\u00a0module.<\/li>\n\n\n\n<li><strong>Term Count<\/strong>\u00a0\u2013 Shows how many posts or products are assigned to the term.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Integration with any block that creates a standard posts query loop<\/h2>\n\n\n\n<p>The Dynamic Data block transcends the limitations of specific integrations, extending its reach to seamlessly collaborate with virtually any block that generates a post query loop. This empowers you to unlock dynamic content potential within a multitude of layouts and contexts, regardless of the specific block utilized.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Embed the Dynamic Data block:<\/strong>&nbsp;Simply place the block within the desired template of your chosen post query loop block.<\/li>\n\n\n\n<li><strong>Leverage Dynamic Data:<\/strong>&nbsp;The block automatically detects available data points, allowing you to effortlessly incorporate them into your layout.<\/li>\n<\/ul>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d1cae466a9d&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d1cae466a9d\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"3456\" height=\"2002\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-27-at-12.46.02.png\" alt=\"\" class=\"wp-image-9796\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Integration with native <strong>Query Loop<\/strong> block.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">WooCommerce products block support<\/h2>\n\n\n\n<p>The Dynamic Data block expands its versatility by seamlessly integrating with WooCommerce&#8217;s new Products block. This empowers you to elevate your product presentations by replacing the built-in sub-blocks with dynamic elements, unlocking a wealth of customisation possibilities.<\/p>\n\n\n\n<p>In addition to the standard fields that the block can normally pull in, for WooCommerce loops it can also showcase essential product details like price, rating,&nbsp;SKU number,&nbsp;and stock status directly within your layouts.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d1cae467029&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d1cae467029\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"3456\" height=\"2000\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-22-at-16.14.11.png\" alt=\"\" class=\"wp-image-9779\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">WooCommerce&#8217;s <strong>Products<\/strong> in combination with the <strong>Dynamic Data<\/strong> block.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Benefits for efficient content management<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Eliminate manual updates:<\/strong>&nbsp;Dynamic data population ensures your layouts always reflect the latest content.<\/li>\n\n\n\n<li><strong>Simplified workflow:<\/strong>&nbsp;Design templates visually,&nbsp;streamlining your workflow and minimizing reliance on multiple plugins.<\/li>\n\n\n\n<li><strong>Unleash your creativity:<\/strong>&nbsp;Explore endless design possibilities with flexible data integration at your fingertips.<\/li>\n\n\n\n<li><strong>Reduced Reliance on Multiple Plugins:<\/strong>&nbsp;Design layouts visually within the Gutenberg editor,&nbsp;minimising the need for separate plugins and streamlining your workflow.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"2056\" style=\"aspect-ratio: 3456 \/ 2056;\" width=\"3456\" autoplay loop muted src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/02\/Screen-Recording-2024-02-21-at-18.10.57.mov\"><\/video><figcaption class=\"wp-element-caption\">Short demo video of the <strong>Dynamic Data<\/strong> block.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Granular Controls<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d1cae467848&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d1cae467848\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"1006\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-21-at-18.25.09.png\" alt=\"\" class=\"wp-image-9764\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<h3 class=\"wp-block-heading\">Content Controls<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Data Source Flexibility:<\/strong>&nbsp;Select the desired content elements for display &#8211; titles,&nbsp;excerpts,&nbsp;post dates,&nbsp;comments,&nbsp;taxonomies,&nbsp;author information,&nbsp;featured images,&nbsp;and even custom fields supported by our integrated plugins.<\/li>\n\n\n\n<li><strong>Contextual Customization:<\/strong>&nbsp;Activate context-specific options based on the chosen source.&nbsp;For instance,&nbsp;transform post titles into actionable links or modify excerpt length to achieve optimal information density.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Before, after &amp; fallback fields<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enhanced Presentation:<\/strong>&nbsp;Infuse your block with visual finesse by incorporating optional content before or after the primary data source.<\/li>\n\n\n\n<li><strong>Custom Field Placeholders:<\/strong>&nbsp;When using custom fields,&nbsp;leverage the fallback field to gracefully handle situations where specific post data is absent.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Working with custom fields and Content Blocks<\/h3>\n\n\n\n<p>When creating a Content Block and planning to utilise custom fields, you might need to leverage the Blocksy post preview feature. This allows you to preview a specific post containing the desired custom fields. Doing so should automatically populate the &#8220;content source&#8221; pane with all available custom fields associated with that post.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"2056\" style=\"aspect-ratio: 3456 \/ 2056;\" width=\"3456\" autoplay loop muted src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2024\/02\/Screen-Recording-2024-02-22-at-16.31.05.mov\"><\/video><figcaption class=\"wp-element-caption\">Working with Custom Fields in Content Blocks.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0Dynamic Data\u00a0block helps you display content from different sources directly in the Gutenberg editor. It\u2019s perfect for creating archive and single templates using Blocksy\u2019s\u00a0Content Blocks\u00a0feature. The block works especially well inside custom layouts built with Content Blocks, where you can insert dynamic data into your archive or single post templates. You can design and build [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[133],"class_list":["post-9445","documentation","type-documentation","status-publish","hentry","doc_categories-theme-blocks"],"blocksy_meta":{"docs_item_badge":"","styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/9445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=9445"}],"version-history":[{"count":43,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/9445\/revisions"}],"predecessor-version":[{"id":13196,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/9445\/revisions\/13196"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=9445"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=9445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}