# ACF Repeater - Output first row only

**URL:** <https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762>\
**Category:** How To\
**Created:** [November 5, 2026, 12:31pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762 "2026-11-05T12:31:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BokM](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@BokM](https://forum.bricksbuilder.io/u/BokM)\
**Post date:** [November 5, 2026, 12:31pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/1 "2026-11-05T12:31:20Z")

</div>

I have setup an ACF Repeater field, but only want to show the first row.  
How would I go about this?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [November 5, 2026, 12:47pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/3 "2026-11-05T12:47:50Z")

</div>

You can limit your ACF repeater query to its first row using the `bricks/query/result` filter. Add this to your child theme’s `functions.php` or a PHP snippets plugin:

```php
add_filter( 'bricks/query/result', function( $results, $query ) {
    if ( $query->element_id === 'abcdef' && is_array( $results ) ) {
        return array_slice( $results, 0, 1 );
    }

    return $results;
}, 10, 2 );

```

Replace `abcdef` with the ID of the element that has your ACF repeater query enabled, without the `brxe-` prefix. Keep your repeater subfield elements inside that loop element.

[Academy: query result filter](https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-query-result/)

---

<div class="post-metadata">

**Author:** ![BokM](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@BokM](https://forum.bricksbuilder.io/u/BokM)\
**Post date:** [November 5, 2026, 12:55pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/4 "2026-11-05T12:55:11Z")

</div>

Thanks!  
ther is no way to do this in the builder or with css?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [November 5, 2026, 12:58pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/6 "2026-11-05T12:58:56Z")

</div>

Not in the Builder, no. Sure, you can use CSS—but the rows are still included in the HTML; they’re just not visible.

On the repeater loop:

```auto
%root%:not(:first-child) {
  display: none;
}

```

With the PHP snippet, they aren’t rendered in the first place (the clean solution).

---

<div class="post-metadata">

**Author:** ![BokM](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@BokM](https://forum.bricksbuilder.io/u/BokM)\
**Post date:** [November 5, 2026, 4:29pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/7 "2026-11-05T16:29:32Z")

</div>

Thanks Ill get back to you on this

---

<div class="post-metadata">

**Author:** ![BokM](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@BokM](https://forum.bricksbuilder.io/u/BokM)\
**Post date:** [November 5, 2026, 6:39pm UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/9 "2026-11-05T18:39:30Z")

</div>

sorry to say but this does not show any row  
this is the structure  
the css is set in the DIV

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/a/0/a04d3433f2095c52601a78d51513bb57a053eecb.png)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [November 6, 2026, 5:59am UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/11 "2026-11-06T05:59:25Z")

</div>

The previous selector only works when the first repeater row is also the first child of its parent. The alternative is:

```auto
%root% ~ %root% {
  display: none;
}

```

This hides every repeater row that follows another row of the same loop, keeping the first one visible even when other elements precede it. Keep the query loop enabled on that Div.

The remaining rows are still present in the HTML, just hidden. To prevent them from rendering, use the PHP snippet above.

---

<div class="post-metadata">

**Author:** ![BokM](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@BokM](https://forum.bricksbuilder.io/u/BokM)\
**Post date:** [November 6, 2026, 10:43am UTC](https://forum.bricksbuilder.io/t/acf-repeater-output-first-row-only/40762/12 "2026-11-06T10:43:38Z")

</div>

Thanks for the explanation!
