Advertisement
Guest User

Untitled

a guest
Jul 15th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="main" class="clearfix">
  4.  
  5. <h1>Our Clients</h1>
  6.  
  7. <?php if (have_posts()) : while (have_posts()) : the_post();
  8.  
  9. $args = array(
  10. 'post_type' => 'attachment',
  11. 'numberposts' => -1,
  12. 'orderby'=> 'menu_order',
  13. 'order' => 'ASC',
  14. 'post_mime_type' => 'image',
  15. 'post_status' => null,
  16. 'post_parent' => $post->ID,
  17. 'exclude' => get_post_thumbnail_id()
  18. ); ?>
  19.  
  20. <section id="content-case-study" class="clearfix">
  21.  
  22. <div id="left" class="hentry">
  23. <h2><?php the_title(); ?></h2>
  24. <h3><?php echo get_post_meta( $post->ID, 'project_title', true ); ?></h3>
  25.  
  26. <?php the_content(); ?>
  27. </div>
  28.  
  29. <div id="right">
  30. <nav class="cs-navigation">
  31. <div class="goback"><a href="<?php echo bloginfo( 'url' ); ?>/client-type/case-study/">Go back</a></div>
  32. <div class="next-cs"><?php be_next_post_link( '%link', 'See Next Case Study', true, 'case-study' ); ?></div>
  33. </nav>
  34.  
  35. <p><?php the_post_thumbnail(); ?></p>
  36.  
  37. <?php $slider_title = get_post_meta( $post->ID, 'slider_title', true );
  38.  
  39. if($slider_title != '') {
  40. echo '<h4>'.$link.'</h4>';
  41. }
  42. $attachments = get_posts( $args );
  43. if ( $attachments ) {?>
  44.  
  45. <div id="slider">
  46. <div id="slideshow">
  47. <div class="slides_container">
  48.  
  49. <?php foreach ( $attachments as $attachment ) {
  50.  
  51. echo wp_get_attachment_image($attachment->ID , 'full' );
  52.  
  53. }?>
  54.  
  55. </div>
  56. </div>
  57. </div>
  58. <?php } ?>
  59.  
  60. <div class="kudos">
  61. <p><?php echo get_post_meta($post->ID, 'testimonial', true); ?></p>
  62. <cite>&mdash; <?php echo get_post_meta($post->ID, 'client_name', true); ?></cite>
  63. </div>
  64.  
  65. <?php endwhile; endif; ?>
  66.  
  67.  
  68. </div>
  69.  
  70. </section>
  71.  
  72. </div><!-- end of main div -->
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement