Home › Forums › Add-ons › Repeater Field › Display repeater from options page › Reply To: Display repeater from options page
Woah so cool, thank you! I understand what I did wrong now 😀
I changed the code slightly to make it simpler:
if(have_rows("gesloten", "option")){
echo '<table style="width: 100%;">';
echo '<tbody>';
while(have_rows("gesloten", "option")) : the_row();
$feestdag = get_sub_field("feestdag");
$datumgesloten = get_sub_field("datum");
echo '<tr>';
echo '<td>'. $feestdag .'</td>';
echo '<td>'. $datumgesloten .'</td>';
echo '</tr>';
endwhile;
echo '</tbody>';
echo '</table>';
}
?>
One last question. How can I style the columns to 50%?
I tried adding a width=”50%” inside <td> but that did not get me the desired look.
The top table is how I would like it to look. The bottom table is the current output.
Thank you much for this
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 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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.