# Is it possible to use loops within a ACF block?

**URL:** <https://forum.pinegrow.com/t/is-it-possible-to-use-loops-within-a-acf-block/4882>\
**Category:** Pinegrow WP\
**Created:** [January 25, 2021, 11:58am UTC](https://forum.pinegrow.com/t/is-it-possible-to-use-loops-within-a-acf-block/4882 "2021-01-25T11:58:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beatngu](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@beatngu](https://forum.pinegrow.com/u/beatngu)\
**Post date:** [January 25, 2021, 11:58am UTC](https://forum.pinegrow.com/t/is-it-possible-to-use-loops-within-a-acf-block/4882/1 "2021-01-25T11:58:57Z")

</div>

I have a section as a ACF block but i want to use loops to add more items to my block.

The block section is a portfolio section with categories , image and a title.  
What i want to make is a easy way to add more portfolio items with a loop just like custom posts.

Is there a way to use loops within a AFC block?  
It would be nice to use custom posts and just fill the block with that.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [January 25, 2021, 12:06pm UTC](https://forum.pinegrow.com/t/is-it-possible-to-use-loops-within-a-acf-block/4882/2 "2021-01-25T12:06:28Z")

</div>

Like this?

> **[ACF | Repeater](https://www.advancedcustomfields.com/resources/repeater/)**
>
> Description The Repeater field provides a neat solution for repeating content - think slides, team members, CTA tiles and alike. This field type acts as a

---

<div class="post-metadata">

**Author:** ![beatngu](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@beatngu](https://forum.pinegrow.com/u/beatngu)\
**Post date:** [January 25, 2021, 12:10pm UTC](https://forum.pinegrow.com/t/is-it-possible-to-use-loops-within-a-acf-block/4882/3 "2021-01-25T12:10:51Z")

</div>

Yes i was just looking at this.  
However can i make a custom post and get the afc block to populate the fields with the custom posts.

To make it easy ill use team member as a example.  
I make a new custom post type called team members and add team member as singular.  
Then i want to get afc with the block function of pinegrow to populate team members in the block with the custom posts.

Is that possible?
