Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $numresults = 0;
- while ( have_posts() ) : the_post(); ?>
- <?php if($make == get_post_meta( get_the_ID(), 'car_make', true) || $make == 'all') { ?>
- <?php $numresults+=1; ?>
- <div class="car_item">
- <div class="carleft">
- <h2 class="cartitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <a href="<?php the_permalink() ?>">
- <?php the_post_thumbnail( array( 230, 230 )); ?>
- </a>
- </div>
- <div class="carright">
- <h2 class="cartitle specs">Specificaties</h2>
- Kilometerstand: <?php echo number_format(esc_html(get_post_meta(get_the_ID(), 'car_km', true)),0,',','.');?> <br>
- Bouwjaar: <?php echo esc_html( get_post_meta( get_the_ID(), 'car_year', true ) );?><br>
- Prijs: € <?php echo number_format(esc_html(get_post_meta(get_the_ID(), 'car_price', true)),0,',','.');?>,-
- </div>
- </div>
- <?php } ?>
- <?php endwhile;
- $resultsperpage = $numresults / 2;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement