Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="car-list">
- <?php while ( have_posts() ): the_post(); ?>
- <a class="car" href="<?php the_permalink(); ?>">
- <?php
- if( have_rows('car_photos') ):
- while ( have_rows('car_photos') ) : the_row();
- ?>
- <span class="car_image" style="background-image:url('<?php the_sub_field('car_photo'); ?>');">
- </span>
- <?php
- break;
- endwhile;
- else :
- endif;
- ?>
- <span class="car__brand"><?php the_field('car_brand'); ?></span>
- <span class="car__model"><?php the_field('car_model'); ?></span>
- <span class="car__fuelgear">
- <span><?php the_field('car_fuel'); ?></span> <span><?php the_field('car_gear'); ?></span>
- </span>
- <span class="car__price">€<?php the_field('car_price'); ?><?php _e('prijs/maand - Excl. BTW','safelease-theme'); ?></span>
- </a>
- <?php endwhile; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement