Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section id="full-width-image">
- <?php if ( have_rows( 'project_image' ) ) : ?>
- <?php while ( have_rows( 'project_image' ) ) : the_row(); ?>
- <?php if ( get_sub_field( 'project_image' ) ) { ?>
- <a href="<?php the_sub_field( 'project_url' ); ?>" target="_blank">
- <div id="project-image" style="background: url(<?php echo the_sub_field( 'project_image' ); ?>) no-repeat top center; background-size: cover;"></div>
- </a>
- <?php } ?>
- <?php endwhile; ?>
- <?php else : ?>
- <?php // no rows found ?>
- <?php endif; ?>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement