Advertisement
Guest User

work.php

a guest
Jun 21st, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Work
  4. */
  5. ?>
  6.  
  7.  
  8. <?php get_header(); ?>
  9.  
  10. <div class="blurb">
  11. <p><span>FRSH</span> will update this in a bit :)</p>
  12. </div><!-- end blurb -->
  13.  
  14. <div id="work">
  15.  
  16. <?php the_content(''); ?>
  17.  
  18. <?php query_posts('cat=4'); ?>
  19. <?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
  20.  
  21. <div class="portfolio-item">
  22.  
  23. <?php //get article_image (custom field) ?>
  24. <?php $image = get_the_post_thumbnail(); ?>
  25.  
  26. <a href="<?php the_permalink(); ?>"<img src="<?php echo $image; ?>" alt="View more info" /></a>
  27. <p class="btn"><a href="<?php the_permalink(); ?>">See more</a></p>
  28. </div><!-- end portfolio-item -->
  29. <?php endwhile; ?>
  30. <?php endif;?>
  31.  
  32. <?php wp_reset_query();?>
  33.  
  34. </div><!-- end work -->
  35.  
  36. <div class="contact">
  37. <p><span>Let's Chat</span></p>
  38. <?php echo do_shortcode('[contact-form-7 id="22" title="Contact form 1"]'); ?>
  39. </div><!-- end contact -->
  40.  
  41. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement