Support

Account

Forum Replies Created

  • @superpowered – I know really nothing about AJAX. Can you give a brief rundown of what your code is doing? Hopefully knowing what is happening will help me be able to use it as a launching pad.

  • Thanks John, that’s pretty much exactly what I was trying to do, didn’t realize I needed to make a whole new array 🙂

  • Hey Chris, try this out:

    <?php
    if(have_rows('field_name')):
       while(have_rows('field_name')): the_row();
          if(get_sub_field('sub_field') == 'functional assay'):
             the_sub_field('sub_field');
          endif;
       endwhile;
    endif;
    ?>

    Thanks John for the correction, I’ve edited. Dunno how I missed that one *whoosh*

    The only problem is if you have more than one of the same repeater subfield in a single post it doesn’t display the next one. My PHP knowledge is somewhat novice though so maybe another person can fix that! But this should nudge you in the right direction hopefully.

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