Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_rows( 'baner' ) ):
- while ( have_rows( 'baner' ) ) : the_row();
- if ( get_row_layout() == 'baner' ) :
- the_sub_field( 'ime_proizvoda' );
- $slika_proizvoda = get_sub_field( 'slika_proizvoda' );
- if ( $slika_proizvoda ) { ?>
- <a href="<?php the_sub_field( 'link_proizvoda' ); ?>" target="_blank"><img src="<?php echo $slika_proizvoda['url']; ?>" alt="<?php echo $slika_proizvoda['alt']; ?>" /></a>
- <?php }
- endif;
- endwhile;
- else:
- // no layouts found
- endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement