Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 7th, 2010 | Syntax: HTML | Size: 1.05 KB | Hits: 133 | Expires: Never
Copy text to clipboard
  1. <?php
  2. /*
  3. Template Name: New Builds with no Slideshow
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div class="clear"></div>
  8. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  9. <?php $picture = get_post_meta($post->ID, 'picture', true); ?>
  10. <div id="content">
  11. <div id="left-content">
  12. <h2>NEW BUILDS</h2>
  13. <!--be sure to change cat=4 to whatever category Refits become-->
  14. <ul class="sidebar">
  15. <?php $recent = new WP_Query("cat=3&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
  16. <li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
  17. <?php endwhile; ?>
  18. </ul>
  19.  
  20. </div>
  21. <div id="right-content">
  22. <?php the_post(); ?>
  23. <div id="slide-gallary">
  24. <img src="<?php echo $picture; ?>" align="left" alt="<?php the_title(); ?>" width="440" height="280" /><br class="clear" />
  25. </div>
  26. <div id="colm-3">
  27.  
  28. <h1><?php the_title(); ?></h1>
  29. <?php the_content(); ?>
  30.         <?php endwhile; ?>
  31.  
  32.  
  33. <?php endif; ?>
  34.  
  35. </div>
  36. <div class="clear"></div>
  37. </div>
  38.  
  39. </div>
  40. <div class="clear"></div>
  41.  
  42.  
  43. <?php get_footer(); ?>