単純にグループからのサブフィールドは出力できますが、グループからグループのサブフィールドの出力の仕方がわかる方いらっしゃいますか?
同じような仕組みでご存知の方、phpまたはワードプレスに得意な方見ていただけませんでしょうか?
単純グループ
php
1<?php if (get_field('size_default')): ?> 2<table> 3<?php while(the_repeater_field('size_default')): ?> 4<tr> 5 <th><?php the_sub_field('size_group'); ?></th> 6 <td><?php the_sub_field('length'); ?></td> 7</tr> 8<?php endwhile; ?> 9</table> 10<?php endif; ?>
複数グループ
php
1<?php if (get_field('size_default')): ?> 2<table> 3<?php while(the_repeater_field('size_default')): ?> 4<?php if (get_field('size_group')): ?> 5<?php while(the_repeater_field('size_group')): ?> 6<tr> 7 <th><?php the_sub_field('size'); ?></th> 8</tr> 9<?php endwhile; ?> 10<?php endif; ?> 11<?php endwhile; ?> 12</table> 13<?php endif; ?>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。