Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if( have_rows('sections') ): ?>
- <div class="sections">
- <?php $count = 0; ?>
- <?php while( have_rows('sections') ): the_row();
- // vars
- $sectionType = get_sub_field('section_type');
- ?>
- <div class="section section--<?php echo $sectionType; ?>>
- <?php if($sectionType == 'tiposezione'): ?>
- <?php elseif($sectonType == 'altratipologia') : ?>
- <?php endif; ?>
- </div>
- <?php $count++; ?>
- <?php endwhile; ?>
- </div>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment