Timber + ACF: Repeater Within A Flexible Content?
-
I have a repeater within a flexible content field. The second for loop is not returning anything even though print_r total traverses through everything.
Flexible Content: gallery_builder > Layout: row > Repeater: columns {% for item in post.get_field('gallery_builder') %} This Content Prints {% for column in item.row.columns %} This Content Does Not Print {% endfor %} {% endfor %} Print_R Output Array ( [acf_fc_layout] => row [page-width] => 1 [class] => [bgcolor] => [columns] => Array ( [0] => Array ( [class] => small-12 [bgcolor] => [mod] => Array ( [0] => Array ( [acf_fc_layout] => hero [class] => [title] => 1 [nickname] => 1 [image] => Array ( [ID] => 2081 [id] => 2081 [title] => shaker-maple-creek-stone-1_1 [filename] => shaker-maple-creek-stone-1_1.jpg [filesize] => 196432 [url] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1.jpg [link] => https://hollandcc.flywheelstaging.com/gallery/coastal-style-master-bath-with-shaker-gray-cabinets/shaker-maple-creek-stone-1_1/ [alt] => shaker-maple-creek-stone-1_1 [author] => 10 [description] => [caption] => [name] => shaker-maple-creek-stone-1_1 [status] => inherit [uploaded_to] => 2069 [date] => 2020-12-01 20:51:23 [modified] => 2020-12-01 20:52:36 [menu_order] => 0 [mime_type] => image/jpeg [type] => image [subtype] => jpeg [icon] => https://hollandcc.flywheelstaging.com/wp-includes/images/media/default.png [width] => 2000 [height] => 1334 [sizes] => Array ( [thumbnail] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-150x150.jpg [thumbnail-width] => 150 [thumbnail-height] => 150 [medium] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-300x200.jpg [medium-width] => 300 [medium-height] => 200 [medium_large] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-768x512.jpg [medium_large-width] => 768 [medium_large-height] => 512 [large] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-1024x683.jpg [large-width] => 1024 [large-height] => 683 [1536x1536] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-1536x1025.jpg [1536x1536-width] => 1536 [1536x1536-height] => 1025 [2048x2048] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1.jpg [2048x2048-width] => 2000 [2048x2048-height] => 1334 [medium-responsive] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-1024x1334.jpg [medium-responsive-width] => 1024 [medium-responsive-height] => 1334 [small-responsive] => https://hollandcc.flywheelstaging.com/wp-content/uploads/2020/12/shaker-maple-creek-stone-1_1-640x1334.jpg [small-responsive-width] => 640 [small-responsive-height] => 1334 ) ) [video] => ) ) ) ) )
Your help would be greatly appreciated!
- The topic ‘Timber + ACF: Repeater Within A Flexible Content?’ is closed to new replies.