{"id":38969,"date":"2023-04-04T14:46:26","date_gmt":"2023-04-04T14:46:26","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=tips-and-tricks&#038;p=38969"},"modified":"2024-05-08T13:18:09","modified_gmt":"2024-05-08T13:18:09","slug":"displaying-custom-repeater-fields-in-the-accordion-widget","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/","title":{"rendered":"Displaying Custom Repeater Fields in the Classic Accordion Widget"},"content":{"rendered":"\n<p>With the <em>JetEngine <\/em>and <em>JetTabs <\/em>plugins, you can display information from the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#repeater\" target=\"_blank\" rel=\"noreferrer noopener\">repeater field<\/a> in a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jettabs\/jettabs-accordion-widget-how-to-display-content-in-the-form-of-a-compact-accordion\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Classic Accordion<\/strong><\/a><strong> <\/strong>widget. For instance, you can showcase details about the different days of a tour on its single page or recreate the steps according to your use case.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">The presented use case is taken from the <a href=\"https:\/\/crocoblock.com\/dynamic-templates\/travengo\/\">Travengo Dynamic Template<\/a>, available for installation for All-Inclusive set owners with the help of the Crocoblock Wizard.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-the-custom-repeater-meta-fields\">Creating the Custom Repeater 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<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Post Types<\/em><\/strong> directory and open a <strong>Custom Post Type<\/strong> editor where you want to add the repeater fields.<\/p>\n\n\n\n<p>Scroll to the <strong>Meta Fields <\/strong>tab and press the \u201c<strong>New Meta Field<\/strong>\u201d button.<\/p>\n\n\n\n<p>Complete the <strong>Label <\/strong>and <strong>Name\/ID <\/strong>fields<strong> <\/strong>with the desired values.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">The <strong>Name\/ID<\/strong> value should include only Latin letters, numbers, and \u201c-\u201d or \u201c_\u201d characters with no spaces and capital letters.<\/p><\/div><\/div>\n\n\n\n<p>Leave the default \u201cField\u201d <strong>Object type <\/strong>and set \u201cRepeater\u201d as a <strong>Field type<\/strong>.<\/p>\n\n\n\n<p>Follow the detailed guide through the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-a-repeater-with-jetengine-repeater-usage-examples\/\" target=\"_blank\" rel=\"noreferrer noopener\">Repeater meta field creation process<\/a> and add the necessary fields to the repeater by pressing the \u201c<strong>New Repeater Field<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-1024x640.webp\" alt=\"repeater meta field\" class=\"wp-image-44202\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Firstly, we build a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-a-custom-meta-field-with-jetengine-custom-meta-field-types-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">meta field<\/a> for the label of the tab. For example, it can be a \u201cText\u201d field as presented in this tutorial.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-1024x640.webp\" alt=\"first repeater field\" class=\"wp-image-44203\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/first-repeater-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>One more \u201cWYSIWYG\u201d field is built for the content of the tabs.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-1024x640.webp\" alt=\"wysiwyg field\" class=\"wp-image-44204\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/wysiwyg-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once all the needed fields are created, click the \u201c<strong>Update Post Type<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"filling-the-fields-within-the-posts\"><strong>Filling the Fields Within the Posts<\/strong><\/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>Go to each <strong>Custom Post Type<\/strong> post, scroll down the page, and add the needed information to the just-added repeater fields.<\/p>\n\n\n\n<p>As the repeater fields will be displayed in the accordion tabs, you should add as many blocks with information as needed. For instance, in the case of the tours, each one will have four or more days.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-1024x640.webp\" alt=\"days repeater field in the post\" class=\"wp-image-44205\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/days-repeater-field-in-the-post.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once you\u2019re done, update the post.&nbsp;<\/p>\n\n\n\n<p>Repeat the same procedure with all the needed posts and proceed to the next step.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"building-a-query\">Building a Query<\/h2>\n\n\n\n<p>Go to <strong><em>WordPress Dashboard > JetEngine > Query Builder <\/em><\/strong>and press \u201c<strong>Add New<\/strong>\u201d to <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">create a new query<\/a>.<\/p>\n\n\n\n<p>In the <strong>General Settings <\/strong>section, set the <strong>Name <\/strong>and define the <strong>Query Type<\/strong>, now it should be set to \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-set-repeater-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Repeater Query<\/a>.\u201d<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-1024x640.webp\" alt=\"new repeater query\" class=\"wp-image-44206\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/new-repeater-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Repeater Query <\/strong>section, specify the <strong>Source <\/strong>of the query \u2014 \u201cJetEngine Meta Field.\u201d<\/p>\n\n\n\n<p>As the <strong>JetEngine Field<\/strong>, select<strong> <\/strong>the \u201cRepeater\u201d meta field that you built earlier based on the <strong><a href=\"#creating-the-custom-repeater-meta-fields\">Creating the Custom Repeater Meta Fields<\/a> <\/strong>part of the article.<\/p>\n\n\n\n<p>In the given case, we leave the <strong>Object ID <\/strong>field empty as we want to display the repeater on the Single page of the corresponding post. However, if you will work with a static page, you should complete this field with the ID of the needed post.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">If your repeater has many fields and you need to pull out only several of them in this query, you can proceed to the <strong>Query Arguments<\/strong> section and repeat the following steps. If not applicable, just click the \u201c<strong>Add Query<\/strong>\u201d button at this point.<\/p><\/div><\/div>\n\n\n\n<p>Press the \u201c<strong>Add new<\/strong>\u201d button under the <strong>Query Arguments <\/strong>section to connect the repeater fields to this query.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-1024x640.webp\" alt=\"repeater query settings\" class=\"wp-image-44207\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Put the <strong>Name <\/strong>of the needed repeater field as the <strong>Field key\/name<\/strong> and set its <strong>Compare <\/strong>operator to \u201cExists.\u201d<\/p>\n\n\n\n<p>You can add more fields by pressing the \u201c<strong>Add new<\/strong>\u201d button once again.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-1024x640.webp\" alt=\"query argument customized\" class=\"wp-image-44208\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-argument-customized.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After the changes are made, press the \u201c<strong>Add Query<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-1024x640.webp\" alt=\"query arguments\" class=\"wp-image-44209\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-arguments.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"working-with-the-accordion-widget\"><strong>Working with the Accordion Widget<\/strong><\/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\"><div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">The repeater fields can be displayed with the <strong>Classic Accordion<\/strong> on a static page as well. In the described case, we will demonstrate how to output it on the Single template. To do so, you need the <a href=\"https:\/\/crocoblock.com\/plugins\/jetthemecore\/\">JetThemeCore<\/a> plugin installed and activated on your website with the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-add-a-single-post-page-template-with-elementor\/\">Single Post Page Template<\/a> created.<\/p><\/div><\/div>\n\n\n\n<p>Head to <strong><em>WordPress Dashboard &gt; Crocoblock &gt; Theme Templates<\/em><\/strong>. Open the <strong>Single Page <\/strong>in Elementor and drop the <strong>Classic Accordion<\/strong> widget.<\/p>\n\n\n\n<p>Activate the <strong>Use JetEngine query <\/strong>toggle and pick the just-created query in the <strong>Select Query <\/strong>field.<\/p>\n\n\n\n<p>Then, delete the two last items presented by default as toggles so only one is left.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-1024x640.webp\" alt=\"query selected in the classic accordion widget\" class=\"wp-image-44210\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/query-selected-in-the-classic-accordion-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Open the <strong>Toggle #1<\/strong> tab and press the&nbsp; \u201c<strong>Dynamic Tags<\/strong>\u201d button next to the <strong>Label <\/strong>field.<\/p>\n\n\n\n<p>Choose the \u201cCurrent Object Field\u201d macro from the list.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-1024x640.webp\" alt=\"current object field macro\" class=\"wp-image-44211\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/current-object-field-macro.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once clicked, the additional customization fields are displayed.<\/p>\n\n\n\n<p>As the <strong>Field<\/strong>, pick the repeater field you want to display as the tab label. You can find the needed field below the label of the query that we have assigned to repeater.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-1024x640.webp\" alt=\"label current object field settings\" class=\"wp-image-44212\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/label-current-object-field-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, set the <strong>Content Type<\/strong>. If you use the \u201cTemplate\u201d <strong>Content Type<\/strong>, you should pick the template (<strong>Choose Template <\/strong>field) that contains the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a><strong> <\/strong>with the needed repeater field set as an <strong>Object Field<\/strong>.<\/p>\n\n\n\n<p>However, in the described case, we select the \u201cEditor\u201d option. Here, press the \u201c<strong>Dynamic Tags<\/strong>\u201d button and select the \u201cCurrent Object Field\u201d macro from the list.\u00a0<\/p>\n\n\n\n<p>Select the needed <strong>Field <\/strong>to be displayed as the content of the tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-1024x640.webp\" alt=\"content current object field settings\" class=\"wp-image-44214\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/content-current-object-field-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Style up the widget and update the page once you\u2019re done with the settings.\u00a0<\/p>\n\n\n\n<p>On the front end, the <strong>Classic Accordion <\/strong>widget will display the information you previously entered into the repeater meta fields of the post.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-1024x640.webp\" alt=\"repeater item\" class=\"wp-image-44215\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-item.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>This is all about displaying custom Repeater fields in the <strong>Classic Accordion<\/strong> widget, which is available with the <em>JetTabs <\/em>plugin for WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display custom repeater fields in the Classic Accordion widget with the JetEngine and JetTabs plugins. Find out how to easily create a repeating block set and display the needed information.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359,380],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs &amp; JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.\" \/>\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\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs &amp; JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-08T13:18:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/\",\"name\":\"Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs & JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-04-04T14:46:26+00:00\",\"dateModified\":\"2024-05-08T13:18:09+00:00\",\"description\":\"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Displaying Custom Repeater Fields in the Classic Accordion Widget\"}]},{\"@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":"Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs & JetEngine | Crocoblock","description":"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.","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\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/","og_locale":"en_US","og_type":"article","og_title":"Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs & JetEngine | Crocoblock","og_description":"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/","og_site_name":"Help Center","article_modified_time":"2024-05-08T13:18:09+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/05\/repeater-meta-field-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/","name":"Displaying Custom Repeater Fields in the Accordion Widget \u2013 JetTabs & JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-04-04T14:46:26+00:00","dateModified":"2024-05-08T13:18:09+00:00","description":"Display custom repeater fields in the Accordion widget with the JetEngine and JetTabs plugins. Find out how to create repeating blocks sets and easily display the needed information.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-custom-repeater-fields-in-the-accordion-widget\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Displaying Custom Repeater Fields in the Classic Accordion Widget"}]},{"@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\/tips-and-tricks\/38969"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=38969"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=38969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}