Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Stop if there's nothing to display.
- if ( ! have_rows( 'services', 'option' ) ) {
- return false;
- }
- if ( have_rows( 'services', 'option' ) ) : ?>
- <?php while ( have_rows( 'services', 'option' ) ) : the_row();
- // Services Sub Repeater.
- if ( have_rows( 'services_list' ) ) : ?>
- <ul class="services">
- <?php
- while ( have_rows( 'services_list' ) ) : the_row();
- $image = get_sub_field( 'icon' );
- $title = get_sub_field( 'service_title' );
- ?>
- <li class="services-single">
- <img src="<?php echo esc_url( $image['sizes']['thumbnail'] ); ?>" alt="<?php echo esc_html( $image['alt'] ); ?>"?>
- <?php echo esc_html( $title ); ?>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment