> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/integrations/generateblocks/nestable-fields.md).

# Nestable fields

{% hint style="info" %}
For an overview of the Query Loop feature, refer to the [official GenerateBlocks Loop documentation](https://generateblocks.com/docs/query-loop/).
{% endhint %}

### Pull the data from a repeater field

Select the GeneratePress Query block, then follow these steps:

1. To fetch a **repeater field from a post type**, choose **Post Meta** as the Query Type and select the corresponding meta key (the repeater field).
2. To retrieve data from a **repeater field in an options page**, choose **Option** as the Query Type and enter the meta key using this format:\
   \
   **{page\_slug}\_{boxname}\_{fieldname}**\
   \
   Example: **page\_meta\_repeater**

### Render the loop elements

Finally, inside the loop item element, insert a Text block and choose **Loop Item** in the dynamic tags menu. The available keys are shown in a select box. Select the desired field:

<figure><img src="https://3235524095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fiyf0tSKPgXiyoQ3zV3I6%2Fuploads%2FBkLWlb8qBxS0jVzIfDMX%2FSchermata%20del%202025-07-10%2012-24-20.png?alt=media&amp;token=23ee5fab-83b3-4464-b4ff-855470d650d7" alt=""><figcaption></figcaption></figure>

And this is the final result:

<figure><img src="https://3235524095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fiyf0tSKPgXiyoQ3zV3I6%2Fuploads%2FAaSyFudeBUIbyCLde9yL%2Fgenerateblocksloop.jpg?alt=media&amp;token=daebdb5c-8f4d-4be0-ae20-858f0c573a1e" alt=""><figcaption></figcaption></figure>

### List fields

List fields store an array of simple string values and can be looped exactly like repeater fields.

Select the GenerateBlocks **Query** block, set the **Query Type** to **Post Meta**, and enter the list field's meta key (e.g. `aa_lista`). The Looper will iterate over each item in the list:

<figure><img src="https://3235524095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fiyf0tSKPgXiyoQ3zV3I6%2Fuploads%2Fgit-blob-d1057ca54b1ce5d31279d1d53fce53a5b55f16b0%2Fgp_list.png?alt=media" alt=""><figcaption></figcaption></figure>

Inside the **Loop Item** element, add a **Text** block and bind it to the `{{loop_item}}` dynamic tag to render each value.
