Advertisement
Guest User

Untitled

a guest
Mar 5th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1.             <?php
  2.             $numresults = 0;
  3.             while ( have_posts() ) : the_post(); ?>
  4.             <?php if($make == get_post_meta( get_the_ID(), 'car_make', true) || $make == 'all') { ?>
  5.                             <?php $numresults+=1; ?>
  6.                             <div class="car_item">
  7.                                 <div class="carleft">
  8.                                     <h2 class="cartitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  9.                                     <a href="<?php the_permalink() ?>">
  10.                                     <?php the_post_thumbnail( array( 230, 230 )); ?>
  11.                                     </a>
  12.                                 </div>
  13.                                 <div class="carright">
  14.                                     <h2 class="cartitle specs">Specificaties</h2>
  15.                                      Kilometerstand: <?php echo number_format(esc_html(get_post_meta(get_the_ID(), 'car_km', true)),0,',','.');?> <br>
  16.                                      Bouwjaar: <?php echo esc_html( get_post_meta( get_the_ID(), 'car_year', true ) );?><br>
  17.                                      Prijs: &euro; <?php echo number_format(esc_html(get_post_meta(get_the_ID(), 'car_price', true)),0,',','.');?>,-
  18.                                 </div>
  19.                             </div>
  20.             <?php } ?>
  21.             <?php endwhile;
  22.             $resultsperpage = $numresults / 2;
  23.             ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement