Support

Account

Home Forums Front-end Issues Hide empty table rows Reply To: Hide empty table rows

  • 
    <?php 
      if (have_rows('productfact')) :
        while (have_rows('productfact')) :
          if (get_sub_field('weight')) :
            ?>
              <tr>
                <td>Weight</td>
                <td><?php the_sub_field('weight'); ?></td>
              </tr>
            <?php 
          endif;
          // ********* code continues