# Repeater

## Basics

A `repeater` is a list of items such as text, images, links, buttons, that have the same design and layout but have different content that is individually customisable.

{% hint style="info" %}
The `Repeater` block will not activate until you add some items. Remember to update the page after adding items.
{% endhint %}

<figure><img src="https://lh4.googleusercontent.com/s3UkYxFjcXrSgndMbT4QL6cmvzR5-KPUOfM3gZIuS0mTxXQ0yDaefDqGG9tcD3kn17VCgz3gtaUIGaPA9FbnF3uXRIyZac7Q0EA1bxD9NAX6sPHBTP9LiLM20I27f2Urf1zCpiFrfgr2IP-8xZn2t49P7P9RC5BvdeDC16abtlQE2_1RG8k29HokI1YsKg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/ZuEX_t5lfiOQ89XqmVmNJNGJX88ieEhHtIidY68VtIVCe7TZdzV47bLGfN7waiWft7hialohAWXZpanm8wecFlpycSm-561CkdTI9mvcJkkbFIge8NQ_iV6zsNCkDlHWyQvoiUCPytijg0H9a_jJDVq5uTPMqDmhJnuWoHMDQLovrNwcCjixc-pyW5bl" alt=""><figcaption></figcaption></figure>

<details>

<summary>Add</summary>

If you want to add a `repeater` block outside any other block on the page:

1. Click on the ➕ ​​icon to open the Inserter Panel
2. Search for the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> `repeater` block
3. Click on the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> `repeater` block to insert it into your page

If you want to add a `repeater` block inside a parent block:

1. Open the Quick Insert panel in the parent block
2. Search for the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> `repeater` block
3. Click on the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> `repeater` block to insert it into your parent block

</details>

{% embed url="<https://www.youtube.com/watch?t=106s&v=mWfyqkt6TeU>" %}
TTD #18 - Repeater
{% endembed %}

## Repeater Block Placeholder

When you add a `repeater` block, a Placeholder will appear.

This will give you the choice to set your Source or, if you haven't already set up your ACF repeater, to do so first.

### Set Source

Set Source will take you to the Source tab in the Primary tab where you can choose the required ACF group in the dropdown.

<figure><img src="https://lh3.googleusercontent.com/TGYTyQgi-nNIqEIfyBMUIuG4DuaG9vapmC1Yp8TYFoLGZketrtfvuYe8cAqGTlN-5f2gbN5wgQflk8zzcNMAO4vydblstEsdX0MC7E7GeGqVsxVWx9cysqAeneN_Tz3i7R_w1SWuSTlVFzt0l29fJUtubQXY0TobGQcrNwmmurcSXEoAONokVz2WrvzJ7Q" alt=""><figcaption></figcaption></figure>

### Create ACF Repeater

Create ACF Repeater will take you directly to the Custom Fields tab in the Dashboard where you can set up a new ACF field group.

<figure><img src="https://lh5.googleusercontent.com/7bvae4gfAPic9_C2Da_r2aPJH19PCgE2LhbTe-4E2XkvxMEJ6EJLay4tJIorYWkrIjJ2L1Gf-0s-wCTUHgqNFLqiaUsrdMhccbuWdwCcbtO-P3i3va9UWJjpJ1LaMVPdvJ6Yeyj_hXtSQatcoQHLEsq1ef_MRJFuWT-239zfq3iCnUUEIBqCJBy22zzsHg" alt=""><figcaption></figcaption></figure>

* Click on "Add Field Group" to create a new Field Group.

<figure><img src="https://lh5.googleusercontent.com/pjmFYflPj4njkDG5WfUUqct86JvqzW7C4ZjdwbXJ5bkJ36Ss7uWYRj21TK9QI4hpkA3X1lbc_cvwg1C_6JuwUeq0X3NpOYAIJLMd3WenYMlkC6RIhwLStBll5YEhNDEokCPmXHMXaiWhCdI3PatWXtXeFFgJK0ONofXIUqBOjDV7oOyenFSSQNn5gqUafQ" alt=""><figcaption></figcaption></figure>

### ACF Group

* The ACF Group allows you to select a list of items to use in your repeater.

{% hint style="info" %}
To create a new list, navigate to the custom fields menu in the Wordpress dashboard and add a new field group. (Set the field type to repeater)
{% endhint %}

<figure><img src="https://lh6.googleusercontent.com/9ThAkLXnznQItLaNJvyKvJQC_oh7sPuFFQV7VWQ_FJjjDpMgffxzCBjylBfPgU004ZJKJLPGrFJ_QcuqWhvkgoMWiiv0QQnKe-vqmUxMIu0lnHySMMUzdNbKM0IIVziqqPXGnZF8ln7rMjjiSlxjQgJc9hNpBNYpJPzTn905J-ozziz3zShV_0pwWPY4RQ" alt=""><figcaption></figcaption></figure>

* When you click Field Type, it will open a dropdown.
* Select the Repeater type.

<figure><img src="https://lh5.googleusercontent.com/tnz-fa_xzbmKLRGyCm-VBjaFnFwZt6riAPSl_8ILjVEmj9Sj6Tvv-BB0T2pEGrJ2q9-oVGgqeJp4tAeNXBrST40_Amg2fGO1u5gr0wIpvaC1l7Io4qRMVQ8D9mEctG3Ob0TySuL-wVoedyyfDi_75hxC8MG43Ily4nkhjaKqY00l53ZOMAKJTLQBF0A9_A" alt=""><figcaption></figcaption></figure>

* Input Field Label, which is the name of your repeater.
* Click "+Add Field".

<figure><img src="https://lh6.googleusercontent.com/VmvdCufJFXRjj_8adleEdv2mX6ESMFF7mTv28VSyYxT2kuBVe1_0WCjTNKUXH0yNlwbQBYCJ0QjLZJJOa1Y42ggxbXF7I5FGZy_a7pmlaX60uoGZwxoHi2SmXM4DpaoTxMJ_vkFEu1ZcsMgnmLW8-Xd132tkpQX6Q89LD218canCX6ExIfGydQ6sUBWdPg" alt=""><figcaption></figcaption></figure>

* Select the Field Type you require in the dropdown: Text, Image, Gallery etc.

<figure><img src="https://lh4.googleusercontent.com/aH_IQJ1C1d-eaDNqvU1rtVoVUlUJ0QUMxJIV_pypOmof9WKwBJYKY5w3jHtpfM3jNvssUjkqMZH-BEdDlIQAnaYrGjzZ8DU8P37vw6YtpiWyT7FYBQfXQXvvFxlgGNEWmyJhAOFYKBZqyrLfmuFEr1Nlp4YNhZtXTYTm4f457xJwZ-CUAAzMn275rY6knA" alt=""><figcaption></figcaption></figure>

* Input the Field Label (what you want to call it).
* Click "+Add Field" to add a new Field.
* Repeat the process for the different field types you want in your repeater.

<figure><img src="https://lh4.googleusercontent.com/4kOIc_JI385HX_hesKDcLfu-gEvyPjrosqpKdtQFPq3CDVezzO12Ije0MX4MuDUT_ULSUOWH900CKR1rw6UwpZHNhnQJsD3bI_Qm--5CNOoLBiRT6zmX1f83a7pIa1L8Aqy7FtJS7DvWtsJOTUn-s4XL9n7Yj7ENzCcpWZ7EsqEmaCpGc85RQoJHXgS_FA" alt=""><figcaption></figcaption></figure>

* When you have completed all your Fields, click "Save Changes".

<figure><img src="https://lh5.googleusercontent.com/OacCv7EmHJBuJRBuFEZDhexLL0fR8tmK7onSH5LjqqgZfTmQThwPhUObCPcNq79oK876WvvwUNzv5Jfl5rtlLLjX_LAOViW3w2Riay9dWMJS40zMY_u4ELuclNwekf-X5CGzuRkJW9mOiKIh46cubx09tY6IhNUyKIccaypb-djSn51Ruy6r3oudpV1b_g" alt=""><figcaption></figcaption></figure>

For more detail please visit:

[Set up an ACF Group](https://www.advancedcustomfields.com/resources/creating-a-field-group/)

### ACF Field

&#x20;An ACF Field allows you to group personalised information about a specific content, such as title, description, image.

To select an ACF field, first select an ACF group in the source tab of the Primary tab.&#x20;

Then chose the ACF field in the ACF field dropdown.

![](https://lh5.googleusercontent.com/e_sxbsnASI5OVjsYU1R6y8M654n-pmcNAToAI_6agYlFyMGIRayp2L_o5mfICvjeDHtoTLW-aeb84hv6TtFvOi8EO5gFwV5XYOtNbDyo8dpmQAgz1JsbOweisBc8uQRIRIHih6ZfBcOxjBnNXRJlcJDcIsiJSpbsWFFPKRqhj96lUq6lOUNDBSn-KK07OA)

### **Repeater Field in Editor**

* The Repeater field can be found in the editor at the bottom of the page.
* Click on the arrow to open the Repeater window.

<figure><img src="https://lh6.googleusercontent.com/idvB21SWzKeh6op4KRiGbGwXhCLjWKQrQMVmNBU6kTwAqekmX5see7ZyzI1vP6Avi08cw_eg-h3UPp81VOs7uAZYnSQRQ5mMmWwhsUhXTlGV5b9w2oaHetcXVEr0ZWtLs-jimsHR4UMYC11msWyn7bKFXLEemJ5b9l2aEy7ovVFHUTwfh8tV9dJpBau6dQ" alt=""><figcaption></figcaption></figure>

* The window will show the field types you have already set up.
* Click "Add Row"  to add the first row to your repeater.

<figure><img src="https://lh3.googleusercontent.com/9c-g2P4C3kdADVtjfICGOmru6QDAgvLPv_5Gf36SJOPu_1hoX2bk0O34uIX2Gw1eSmsCrEAmm6DDQAVxox1qSwmM5ex-ut7J4tsRQofne8TdsQHQ_4iLn2UwxZ1jxKjNssl1tGiTxJPJmCANTS9Au1FhIp5A4Zr_SG6xKXLqoaQ230sJo9dM5uX4OnhPPA" alt=""><figcaption></figcaption></figure>

* Input the fields you created previously, for instance Title, Name, Image etc.
* Click "Add Row" to create a new row.
* Input as before and continue until you have filled in all the rows you. require.

<figure><img src="https://lh5.googleusercontent.com/-9Wk9cjZT_vjADMvDIMpdCd6dzrHMaOjzn0fe7Aso38Q0BOVkdGX8Y_tX311cX5wKkDNcR9Yr4VzOxlo124Y6Y8iodPOtjaD9wP5SHsW4wMy1ncmf4Okzzf9pK8IseaZIg2NkTyGzAPv65xyKrbwsXiBkipXODNDYa-etbM6UFg_Ph9W8keP7Igd3oCuwg" alt=""><figcaption></figcaption></figure>

### Remove Repeater Row in Editor

* To remove a row, hover over the row and click the - (minus) button.

<figure><img src="https://lh6.googleusercontent.com/Bq-1k3bpHcBIIcyUaZIk6EV8sUFDO16gnkdx6wcU9ZN0i_R2U6Pk9B6163LBns27j_KOegS6FarwHQVZcTRzAbr1p3Oj8_bGnZ_B3JrV3hOGa6Ii9Y39v5J_ycKDg2fODFFM_Rw5QNQlWtMkKAp8qXA_9yWySe2Cwp6DCZse8dtYdrjAeaWAol-kuxughw" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Remember to refresh the page for the input data to appear.
{% endhint %}

* Your repeater fields in the editor should look something like this.

<figure><img src="https://lh6.googleusercontent.com/PCGCY2vuNzzRsxS9Jmsd1FBf8T7qOu1GSjtQuXOGq4KK8XskMR3itPxi4Qu6MSCUJP_yiwIS4RHY9DqjR9tK58-gkqj6vMDT_07cfgG2MhYppaleGvF06OYMqBuagnhBZsVyJ0OcrM1QZYWjiluLLhhnEPSLd8u6M8JiqKYFrsCG8MYiQuqzwXJzZUhMmg" alt=""><figcaption></figcaption></figure>

## Layout

The Layout tab allows you to modify how your Items are displayed in your `Repeater` block. This includes Display, Grid Type, Auto Grid, Auto Template as well as Height, Column and Row Gap.

Open the Layout tab in the Primary tab and set the required layout.

See [Query Template Layout ](https://docs.cwicly.com/query-template#layout)(they work in a similar way).

![](https://lh4.googleusercontent.com/0N2_KsfTVkeP5JJqzwE3dRdUam0K49xy0Sl8Gdv4_-0gJiALDtxkXSbd22m9RnNkJZfNAzPVSKNwYIXTNu-ybdgJV_od7ZZ3MXwp2xToX29E_vigbKn69dkZ-qOJ4W30f3r-4Y948hA-Vb3ORzdDwXXfraLSp_mfZfdnEk5Mbefolzp2EwOIEQgx7U0o_A)

## Colours

The Colours tab allows you to modify the Colours of the content in your Repeater block, including Text colour, Link colour, Background colour.

<details>

<summary>Modify</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Colours tab
5. Modify the Colours of your text, link, background

</details>

<details>

<summary>Reset</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Colours tab
5. Click required dot(s) to remove modifications to the Colours of your text, link, background

</details>

![](https://lh3.googleusercontent.com/TRxkshEBQQaGO0V_DHARP1ryqOoMLX3QidS5czmqj3u7eseBiuPjKvba5uPiQYbBvlBOWDuphZ6vhm6gq8SjwNfujzBVC_sgH39cvzeEkxyK0ykMdbgzq6vIvuIw011qPszeFxLI-FoeFSaZz5TSbvwwO3H_lsvPxzCNBLHBClD91PR56kHJg74LFlBe3g)

## Grid Editor

The Grid Editor tab allows you to visually edit & design your Repeater Grid layout.

The Grid Editor is enabled in the Layout tab by selecting the grid layout.

See [Query Template Grid Editor ](https://docs.cwicly.com/query-template#grid-editor)(they work in a similar way).

![](https://lh6.googleusercontent.com/11jAZwHOlImnypIGULNuYngOUXeIgWqylCmy0LWuYGllK-SXWgSX2Iau7rgwAB_lYpCiaJnWtTSUqyqPklivEeqr2nATmOMTt1lhx75z87QHCRk07Lzy4KZHYIKyfnlgY0AuchC5xzdody-cn1e2EdYMZ_5wO9uj3UNfhJPR5tSUrAk92Wb3AUBF94lpJw)     ![](https://lh4.googleusercontent.com/Ui83BgNtl-jXDS5bWkANLoaAptaL48VklU5hYNEip-yxgFPJ66OXX7nqKzUJ7iaOmJCPbQ4k3-Fyu1XkpvcdntWlnQuSapKcfyHXeFhxfZUk7iOBgp03r6c03R0v5bn_g4TAcNc0zUWTrSyOlMV1A6MbSlroeMw8WjaC7q4lA9kxd-Bnm8vBFDtYLqeS8w)

## Location ID

The Location parameter allows you to set the source for your Repeater. This can be a Specific Post ID or an Options page (in preparation for nested repeaters).

### Post ID

This allows you to set the source for your Repeater using a Specific Post ID

![](https://lh3.googleusercontent.com/RyDJLYfK515fgUU7lCndFKdikqq2VBu1PQCzs0DKNYgbYGR4dDVeU_Uu76cz3ZjPUP47feFRzQlhPQIS81JbaHjWYuBHq0I56mUZca5ETxJ9V5_cqGpJsKWExDurzFXRODTQXGFUpQfon--U-pjwmoskaOsWKc5wKzGEiVcTG-6r-sCnPGCE2WFIrZVuQQ)  ![](https://lh4.googleusercontent.com/WXcQwlMgK7nEmfJ3ARR3v5n6MvNz684FgDJkTLBesak54SODaq2fzZzcVdySnczGYPe54jM_8xuEq16Nd3KiMlzcvSuW21iEfDafjGUcokK0h3D64Q8mvSSbc0RWdyoXeecM34c6SZjyHpO6_CifCMh4YUrRDWLD2UKcn0izizliRyZmyymFa2-Girr13Q)

<details>

<summary>Select</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Source tab
5. Find Location ID
6. Select Post ID in dropdown
7. Input ID

</details>

<details>

<summary>Reset</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Source tab
5. Find  Post ID
6. Click dot to reset

</details>

### Options Page

This will allow you to choose the source for your repeater if you have created an Options Page.

![](https://lh5.googleusercontent.com/8K882Ct4Wq8jtnruUoc2XWGZ2KzydyUvaBxz0pnuyenynhZulfWCHAxoscBnurzFP18U3XdEkQzSl-H5gz_dL6kPF2Iuw90IgrAIO9TvAS1Ubhx7J0nUbNJYULxWh6Ify_jPR2K54ANxLgEUGD48XZLWf9BTmj7n4gr9iHkLGP7brQj3E2NwnPfQ86LtrA)

<details>

<summary>Select</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Source tab
5. Find Location ID
6. Select Options Page in dropdown

</details>

<details>

<summary>Reset</summary>

1. Select a `repeater` block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Open the Source tab
5. Find Options Page&#x20;
6. Click dot to reset

</details>
