Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="hero">
- <?php the_post_thumbnail('imagen-hero');?>
- <div class="texto-hero">
- <?php the_field('texto_principal');?>
- </div>
- </div>
- <?php
- if( have_rows('bloques') ): ?>
- <div class="bloques">
- <?php while ( have_rows('bloques') ) : the_row(); ?>
- <div class="columna">
- <?php
- $image = get_sub_field('imagen');
- if( !empty($image) ): ?>
- <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
- <?php endif; ?>
- <h3><?php the_sub_field('titulo');?></h3>
- <p><?php the_sub_field('subtitulo');?></p>
- </div>
- <?php endwhile;?>
- </div>
- <?php endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement