{"id":50820,"date":"2026-02-02T08:33:56","date_gmt":"2026-02-02T08:33:56","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=50820"},"modified":"2026-03-11T15:57:26","modified_gmt":"2026-03-11T15:57:26","slug":"how-to-fetch-data-dynamically-using-component","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/","title":{"rendered":"How to Fetch Data Dynamically Using a Component"},"content":{"rendered":"\n<p>In this guide, we will explore a use case where we have <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>meta fields<\/strong><\/a> for the icon and link in the <strong>Custom Post Type<\/strong>. Using the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/components-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Component<\/strong><\/a> feature, we need to display a dynamic button on a single post that pulls the icon and link from the meta fields. For that, we will use the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget \u2013 the most relevant available solution.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-meta-fields\">Add Meta Fields<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Proceed to <strong><em>WordPress Dashboard > JetEngine > Post Types<\/em><\/strong>, then click the \u201c<strong>Edit<\/strong>\u201d button next to the needed <strong>CPT<\/strong>. Move to the <strong>Meta fields<\/strong> tab, and click the \u201c<strong>New Meta Field<\/strong>\u201d button to add the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#text\" target=\"_blank\" rel=\"noreferrer noopener\">Text<\/a>\u201d field for the link. Type in the needed <strong>Label<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-1024x640.webp\" alt=\"text field for the link is added\" class=\"wp-image-50821\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Add one more field and select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#iconpicker\" target=\"_blank\" rel=\"noreferrer noopener\">Iconpicker<\/a>\u201d <strong>Field Type<\/strong>. Enter the <strong>Label <\/strong>for the field.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-1024x640.webp\" alt=\"iconpicker field for the icon is added\" class=\"wp-image-50822\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/iconpicker-field-for-the-icon-is-added.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Update Post Type<\/strong>\u201d button.\u00a0<\/p>\n\n\n\n<p>Then, go to the posts from the edited <strong>CPT <\/strong>and add the data to the newly created fields.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-1024x640.webp\" alt=\"fields for link and icon are filled for the post\" class=\"wp-image-50823\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/fields-for-link-and-icon-are-filled-for-the-post.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Ensure you saved the changes.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-a-component\">Build a Component<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Now, navigate to <strong><em>WordPress Dashboard > JetEngine > Listings\/Components<\/em><\/strong> and click the \u201c<strong>Add New Component<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the newly opened <strong>Setup Component<\/strong> pop-up, enter the <strong>Component name<\/strong> and select the <strong>Component view<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-1024x640.webp\" alt=\"create component popup\" class=\"wp-image-50824\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/create-component-popup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Create Component<\/strong>\u201d button.&nbsp;<\/p>\n\n\n\n<p>Click the file-shaped icon in the top panel and create three <strong>Text Component Controls<\/strong> in the <strong>Component Content Controls <\/strong>tab. There should be controls for button label, button link, and button icon.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-1024x640.webp\" alt=\"component content text controls\" class=\"wp-image-50825\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/component-content-text-controls.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, inside the <strong>Component<\/strong>, add the <strong>Dynamic Field<\/strong> widget. In the <strong>Source<\/strong>, select the \u201cComponent Content Value\u201d option. In the <strong>Object field \/ Meta field \/ Repeater key \/ Component prop<\/strong> input, enter the <strong>Component Name<\/strong> for the icon, which can be found in the <strong>Component Content Controls<\/strong> settings.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-1024x640.webp\" alt=\"get control name for the icon\" class=\"wp-image-50826\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/get-control-name-for-the-icon.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, enable the <strong>Filter field output<\/strong> toggle and select the \u201cEmbed icon from iconpicker\u201d option from the <strong>Callback <\/strong>dropdown.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-1024x640.webp\" alt=\"source and callback set up in the dynamic field\" class=\"wp-image-50827\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/source-and-callback-set-up-in-the-dynamic-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Now, open your site in a new window and proceed to <strong><em>WordPress Dashboard &gt; JetEngine &gt; JetEngine &gt; Macros Generator<\/em><\/strong>.&nbsp;<\/p>\n\n\n\n<p>For the <strong>Macros <\/strong>field, select the \u201cComponent Control Value\u201d option, and for the<strong> Control Name<\/strong>, enter the name of the text control for the button link. Copy and keep the macro you get.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-1024x640.webp\" alt=\"macros for the button link control\" class=\"wp-image-50828\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-link-control.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Change the <strong>Control Name<\/strong> to match the button label.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-1024x640.webp\" alt=\"macros for the button label control\" class=\"wp-image-50829\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/macros-for-the-button-label-control.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Copy and keep this macro as well for now.&nbsp;<\/p>\n\n\n\n<p>Move back to the <strong>Component <\/strong>settings page. Turn on the <strong>Customize field output<\/strong> toggle, and in the newly appeared <strong>Field format<\/strong> field, enter the following piece of code:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;a href='%macro for button link%'>%s %macro for button label%&lt;\/a><\/code><\/pre>\n\n\n\n<p>Instead of the \u201cmacro for button link\u201d and \u201cmacro for button label\u201d, paste the macros you created in the previous step.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-1024x640.webp\" alt=\"dynamic field widget settings\" class=\"wp-image-50830\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/dynamic-field-widget-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Publish the template once you are ready.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-component-to-the-page\">Add the Component to the Page<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Move to the single template page where the button should be added. Add the <strong>Component <\/strong>you created (you can find it by the name you added during the step of creating the <strong>Component<\/strong>).&nbsp;<\/p>\n\n\n\n<p>Now we need to set the controls. For the \u201cbutton_label\u201d, we want the same label displayed for all posts, so we just enter it.&nbsp;<\/p>\n\n\n\n<p>For the link and icon, click the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-tags-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Tag<\/strong><\/a>\u201d icon next to the field and select the \u201cCustom Field\u201d option from the dropdown. Then select the icon and link fields from the custom fields we created earlier.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-1024x640.webp\" alt=\"controls set up on the page\" class=\"wp-image-50831\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/controls-set-up-on-the-page.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Publish<\/strong>\u201d button once you are ready.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-the-result\">Check the Result<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Proceed to the front-end page of the posts from your <strong>CPT<\/strong>.&nbsp;<\/p>\n\n\n\n<p>Here, the button with the defined text and icon is displayed. Additionally, when we hover over the button, we see that the link is attached to it.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-1024x640.webp\" alt=\"button with the dynamic icon and link works on the front\" class=\"wp-image-50832\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/button-with-the-dynamic-icon-and-link-wirks-on-the-front.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s it. Now you know how to fetch data dynamically using the <em>JetEngine <\/em>WordPress plugin\u2019s <strong>Component <\/strong>module.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover how to retrieve data dynamically using the dynamic button example with the JetEngine WordPress plugin\u2019s Component module. <\/p>\n","protected":false},"author":20,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[568],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.\" \/>\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\/jetengine\/how-to-fetch-data-dynamically-using-component\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-11T15:57:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-1024x640.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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/\",\"name\":\"How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-02-02T08:33:56+00:00\",\"dateModified\":\"2026-03-11T15:57:26+00:00\",\"description\":\"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/#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\":\"How to Fetch Data Dynamically Using a Component\"}]},{\"@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":"How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock","description":"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.","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\/jetengine\/how-to-fetch-data-dynamically-using-component\/","og_locale":"en_US","og_type":"article","og_title":"How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock","og_description":"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/","og_site_name":"Help Center","article_modified_time":"2026-03-11T15:57:26+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/text-field-for-the-link-is-added-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/","name":"How to Fetch Data Dynamically Using a Component \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-02-02T08:33:56+00:00","dateModified":"2026-03-11T15:57:26+00:00","description":"Learn how to fetch data dynamically by creating a dynamic button using the JetEngine component on the WordPress site.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-fetch-data-dynamically-using-component\/#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":"How to Fetch Data Dynamically Using a Component"}]},{"@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\/50820"}],"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\/20"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=50820"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=50820"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=50820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}