Skip to content

Commit

Permalink
Fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bruckmaier committed Aug 22, 2024
1 parent fd7ebd2 commit e2f40c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ foreach ($post->acf->main_repeater as $layout) {
}

// preloads all attachment relations, fires 2 queries in total
foreach ($post->acf->main_repeater()->load('foo_image.attachment', 'bar_image.attachment') as $layout) {
foreach ($post->acf->main_repeater()->load('foo_image.attachment', 'bar_image.attachment')->value as $layout) {
$layout->foo_image->attachment;
$layout->bar_image->attachment;
}
Expand Down

0 comments on commit e2f40c0

Please sign in to comment.