Menu
All plugins

Native ACF repeater loops, enhanced

Sort, filter, limit and re-source the rows of a native Bricks ACF repeater loop, with no custom query type and no code. The same six wildlife rows are reshaped below. In each example the plain Bricks loop is on the left and the enhanced loop is on the right.
Read the setup guideTop threeConfirmed onlyStacked rulesDates and notesOther sourcesNested rowsEvery operator

Show only the top three

A leaderboard from a plain repeater: sort by score, highest first, then cut the list to three rows.
Sort: score, numeric descending
Limit: 3 rows
Native loop: all rows
Puffin
Score 9 · active
Eagle
Score 15 · active
Lynx
Score 9 · pending
Fox
Score 0 · active
Otter
Score 5 · pending
Badger
Score 12 · active
With the enhancer
Wildlife gallery sample 2
Eagle
Score 15 · active · South
Wildlife gallery sample 6
Badger
Score 12 · active · South
Wildlife gallery sample 1
Puffin
Score 9 · active · North

Show only what is confirmed

Hide the pending rows, then put what is left in order of score.
Filter: status equals active
Sort: score, numeric descending
Native loop: all rows
Puffin
Score 9 · active
Eagle
Score 15 · active
Lynx
Score 9 · pending
Fox
Score 0 · active
Otter
Score 5 · pending
Badger
Score 12 · active
With the enhancer
Wildlife gallery sample 2
Eagle
Score 15 · active · South
Wildlife gallery sample 6
Badger
Score 12 · active · South
Wildlife gallery sample 1
Puffin
Score 9 · active · North
Wildlife gallery sample 4
Fox
Score 0 · active · South

Stack several rules together

Up to four rules can be combined, either all of them or any of them. Here only confirmed rows in the South with a score of 9 or more survive.
Match all
status equals active
location.name equals South
score is 9 or more
Native loop: all rows
Puffin
Score 9 · active
Eagle
Score 15 · active
Lynx
Score 9 · pending
Fox
Score 0 · active
Otter
Score 5 · pending
Badger
Score 12 · active
With the enhancer
Wildlife gallery sample 2
Eagle
Score 15 · active · South
Wildlife gallery sample 6
Badger
Score 12 · active · South

Filter on empty values and sort by date

Show only the rows that have a note, oldest date first: Eagle (11 Nov), Fox (13 Nov), then Badger (15 Nov). Rows with blank notes drop out.
Filter: note is not empty
Sort: date, ascending
Native loop: all rows
Puffin
Score 9 · active
Eagle
Score 15 · active
Lynx
Score 9 · pending
Fox
Score 0 · active
Otter
Score 5 · pending
Badger
Score 12 · active
With the enhancer
Wildlife gallery sample 2
Eagle
Score 15 · active · South
Note: Includes field notes
Kept because its note is not empty.
Wildlife gallery sample 4
Fox
Score 0 · active · South
Note: Includes field notes
Kept because its note is not empty.
Wildlife gallery sample 6
Badger
Score 12 · active · South
Note: Includes field notes
Kept because its note is not empty.

Reuse a repeater from another post

The enhancer can read the same repeater from a different post, a term, a user or the Options page, then apply the same sorting and limits.
Source: another post (7135)
Limit: 3 rows
Native loop: all rows
Puffin
Score 9 · active
Eagle
Score 15 · active
Lynx
Score 9 · pending
Fox
Score 0 · active
Otter
Score 5 · pending
Badger
Score 12 · active
With the enhancer
Wildlife gallery sample 1
Source B Puffin
Score 9 · active · North
Wildlife gallery sample 2
Source B Eagle
Score 15 · active · South
Wildlife gallery sample 3
Source B Lynx
Score 9 · pending · North

Keep parent and child context

Repeaters nested inside repeaters keep working. Each parent row below has its own Dawn and Dusk children, listed in reverse, and every child can still read the parent it belongs to.
Parents: limit 2 rows
Children: reverse order
Wildlife gallery sample 1
Puffin
Score 9 · active · North
Puffin / Dusk (parent: Puffin)
Puffin / Dawn (parent: Puffin)
Wildlife gallery sample 2
Eagle
Score 15 · active · South
Eagle / Dusk (parent: Eagle)
Eagle / Dawn (parent: Eagle)

Reference: every operator and source in isolation

The cards below test each sort mode, all fourteen comparison operators and each source on its own, with the exact setting and the expected result for each. Use them to check precise behaviour.

Baseline, sorting and slicing

Baseline order: Puffin, Eagle, Lynx, Fox, Otter, Badger. Scores: 9, 15, 9, 0, 5, 12. Sorting is stable; slicing happens after filtering and sorting.

Native baseline — enhancer off

Enhancer off (native Bricks loop)
Expected: all six source rows, in ACF order.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Badger
Score: 12 · Status: active · Region: South

Reverse order

Enhancer · Sort: reverse order
Expected: Badger first, Puffin last.
Badger
Score: 12 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Eagle
Score: 15 · Status: active · Region: South
Puffin
Score: 9 · Status: active · Region: North

Text ascending

Enhancer · Sort: name, text ascending
Expected: Badger, Eagle, Fox, Lynx, Otter, Puffin.
Badger
Score: 12 · Status: active · Region: South
Eagle
Score: 15 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North
Puffin
Score: 9 · Status: active · Region: North

Text descending

Enhancer · Sort: name, text descending
Expected: Puffin through Badger.
Puffin
Score: 9 · Status: active · Region: North
Otter
Score: 5 · Status: pending · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Eagle
Score: 15 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

Numeric ascending

Enhancer · Sort: score, numeric ascending
Expected: Fox (0), Otter (5), Puffin (9), Lynx (9), Badger (12), Eagle (15).
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Badger
Score: 12 · Status: active · Region: South
Eagle
Score: 15 · Status: active · Region: South

Numeric descending

Enhancer · Sort: score, numeric descending
Expected: Eagle (15) first, Fox (0) last.
Eagle
Score: 15 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South

Secondary sort for ties

Enhancer · Sort: score ascending, then name ascending
Expected: Lynx before Puffin, because both score 9.
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Puffin
Score: 9 · Status: active · Region: North
Badger
Score: 12 · Status: active · Region: South
Eagle
Score: 15 · Status: active · Region: South

Date ascending

Enhancer · Sort: date, ascending
Expected: October dates before November dates.
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North
Eagle
Score: 15 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

Date descending

Enhancer · Sort: date, descending
Expected: November dates before October dates.
Badger
Score: 12 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South
Eagle
Score: 15 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Puffin
Score: 9 · Status: active · Region: North

Sort, skip one, take two

Enhancer · Sort: score ascending · Offset 1 · Limit 2
Expected: Otter and Puffin.
Otter
Score: 5 · Status: pending · Region: North
Puffin
Score: 9 · Status: active · Region: North

All fourteen operators, plus AND and OR

Each example shows a real filtered result. Text comparisons ignore case. Empty means a blank value; the zero score is a real number and is not empty.

eq on status

Enhancer · Filter: status equals active
Expected: four active rows.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

neq on status

Enhancer · Filter: status does not equal active
Expected: two pending rows.
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North

contains on name

Enhancer · Filter: name contains "ff"
Expected: Puffin only.
Puffin
Score: 9 · Status: active · Region: North

not_contains on name

Enhancer · Filter: name does not contain "ff"
Expected: everything except Puffin.
Eagle
Score: 15 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North
Badger
Score: 12 · Status: active · Region: South

starts on name

Enhancer · Filter: name starts with "Pu"
Expected: Puffin only.
Puffin
Score: 9 · Status: active · Region: North

ends on name

Enhancer · Filter: name ends with "er"
Expected: Otter and Badger.
Otter
Score: 5 · Status: pending · Region: North
Badger
Score: 12 · Status: active · Region: South

gt on score

Enhancer · Filter: score is greater than 9
Expected: Eagle and Badger.
Eagle
Score: 15 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

gte on score

Enhancer · Filter: score is 9 or more
Expected: four rows, including both scores of 9.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Badger
Score: 12 · Status: active · Region: South

lt on score

Enhancer · Filter: score is less than 9
Expected: Fox and Otter.
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North

lte on score

Enhancer · Filter: score is 9 or less
Expected: four rows at or below 9.
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Otter
Score: 5 · Status: pending · Region: North

empty on note

Enhancer · Filter: note is empty
Expected: Puffin, Lynx and Otter (blank notes).
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North

not_empty on note

Enhancer · Filter: note is not empty
Expected: Eagle, Fox and Badger (they have notes).
Eagle
Score: 15 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

in on name

Enhancer · Filter: name is in "Puffin, Otter"
Expected: Puffin and Otter.
Puffin
Score: 9 · Status: active · Region: North
Otter
Score: 5 · Status: pending · Region: North

not_in on name

Enhancer · Filter: name is not in "Puffin, Otter"
Expected: the four other rows.
Eagle
Score: 15 · Status: active · Region: South
Lynx
Score: 9 · Status: pending · Region: North
Fox
Score: 0 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

Nested Group path

Enhancer · Filter: location.name equals North
Expected: Puffin, Lynx and Otter.
Puffin
Score: 9 · Status: active · Region: North
Lynx
Score: 9 · Status: pending · Region: North
Otter
Score: 5 · Status: pending · Region: North

AND: active and score ≥ 9

Enhancer · Match all: status equals active + score is 9 or more
Expected: Puffin, Eagle and Badger.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South
Badger
Score: 12 · Status: active · Region: South

OR: score < 5 or name = Eagle

Enhancer · Match any: score is less than 5 + name equals Eagle
Expected: Eagle and Fox.
Eagle
Score: 15 · Status: active · Region: South
Fox
Score: 0 · Status: active · Region: South

Four rules together

Enhancer · Match all 4: status active + score 9 or more + location.name North + name starts "Pu"
Expected: Puffin only.
Puffin
Score: 9 · Status: active · Region: North

No matches

Enhancer · Filter: name equals "No such sample"
Expected: no rows. The empty result is intentional.

Source selection

These use explicit field keys and source IDs. The options, user and term labels are deliberately different, so the source is visible in the rendered output.

This page explicitly

Enhancer · Source: this page (post 7092) · Limit 2
Expected: the first two rows of this page's own repeater.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South

A different post

Enhancer · Source: another post (7135)
Expected: six rows, all labelled Source B.
Source B Puffin
Score: 9 · Status: active · Region: North
Source B Eagle
Score: 15 · Status: active · Region: South
Source B Lynx
Score: 9 · Status: pending · Region: North
Source B Fox
Score: 0 · Status: active · Region: South
Source B Otter
Score: 5 · Status: pending · Region: North
Source B Badger
Score: 12 · Status: active · Region: South

Options page

Enhancer · Source: ACF Options page
Expected: two rows, labelled Options.
Options Puffin
Score: 9 · Status: active · Region: North
Options Eagle
Score: 15 · Status: active · Region: South

User object

Enhancer · Source: user 1
Expected: one sample row stored on user 1.
User sample Puffin
Score: 9 · Status: active · Region: North

Term object

Enhancer · Source: term 66
Expected: one sample row stored on the demo category.
Term sample Eagle
Score: 15 · Status: active · Region: South

Tracked parent context

Enhancer · Source: parent context · Limit 2
Expected: the first two rows from the current page context.
Puffin
Score: 9 · Status: active · Region: North
Eagle
Score: 15 · Status: active · Region: South

Invalid source

Enhancer · Source: post 999999999 (does not exist)
Expected: no rows, because the post ID is invalid.

Nested rows and native field rendering

Read the child label beside its parent and root. The complex-field examples deliberately use Bricks native ACF image, gallery, link and WYSIWYG tags alongside the explicit transformed-row text.

Nested repeater context

Enhancer · Limit 2 · child rows sorted in reverse
Expected: two parent rows, each with Dawn and Dusk children in reverse order.
Puffin
Score: 9 · Status: active · Region: North
Parent post: ACF Repeater Enhancer Demo · row index 0
Puffin / Dusk | parent Puffin | root Puffin
Puffin / Dawn | parent Puffin | root Puffin
Eagle
Score: 15 · Status: active · Region: South
Parent post: ACF Repeater Enhancer Demo · row index 1
Eagle / Dusk | parent Eagle | root Eagle
Eagle / Dawn | parent Eagle | root Eagle

Native complex fields

Enhancer · Limit 2 · native image, rich text, link and gallery tags
Expected: the first two rows, each showing its photo, rich text, link and gallery.
Puffin
Score: 9 · Status: active · Region: North
Wildlife gallery sample 1
Wildlife image 1 — independent Playground gallery fixture

Public sample details for Puffin.

Native link field
Eagle
Score: 15 · Status: active · Region: South
Wildlife gallery sample 2
Wildlife image 2 — independent Playground gallery fixture

Public sample details for Eagle.

Native link field

Complex fields from another post

Enhancer · Source: another post (7135) · Limit 2
Expected: Source B text with the matching photos, links and rich text.
Source B Puffin
Score: 9 · Status: active · Region: North
Wildlife gallery sample 1
Wildlife image 1 — independent Playground gallery fixture

Public sample details for Puffin.

Native link field
Source B Eagle
Score: 15 · Status: active · Region: South
Wildlife gallery sample 2
Wildlife image 2 — independent Playground gallery fixture

Public sample details for Eagle.

Native link field
Diagnostics are visible only to administrators and appear after the loops. These transformations do not add frontend JavaScript or change the stored ACF rows.
Read the full configuration guide