Support

Account

Home Forums Front-end Issues Repeater – if 3 row or if more

Helping

Repeater – if 3 row or if more

  • Hi,

    I’m trying to do a repeater where if 3 row have been chosen you display one set of code however if its more you show different set of code.

  • Hi @forbiddenchunk

    You will need to check the repeater row count as follows.

    $count = count(get_field('repeater_name'));

    You can then show the each code set depending on the row count.

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.