Home › Forums › Add-ons › Repeater Field › Repeater display Data on (2) Columns of a Table? › Reply To: Repeater display Data on (2) Columns of a Table?
Hi,
I have a similar problem. I have multiple lists of series. Each series has multiple sessions. So, I tried to build a repeater inside a repeater, like this.
Download Content – Repeater
— Series Title – Text
— Session Title – Repeater
— Title
— Speaker
1 table per series
1 row for each session title
This is what I have so far, and all I can get is the main series title, but it’s not calling any of the sessions: http://4-11.org/download/?page_id=2
<?php
$rows = get_field('download_content');
if($rows)
{
echo '<ul>';
foreach($rows as $row)
{
echo '<li>' . $row['series_title'] ;
$rows = get_field('session_title') ;
if($rows)
{
echo '<ul>';
foreach($rows as $row)
{
echo '<li>' . $row['title']. ','. $row['speaker'] .', etc</li>';
}
echo '</ul></li>';
}
}
echo '</ul>';
}
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.