
Untitled
By: a guest on
Jul 15th, 2012 | syntax:
None | size: 1.83 KB | hits: 50 | expires: Never
<?php get_header(); ?>
<div id="main" class="clearfix">
<h1>Our Clients</h1>
<?php if (have_posts()) : while (have_posts()) : the_post();
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'orderby'=> 'menu_order',
'order' => 'ASC',
'post_mime_type' => 'image',
'post_status' => null,
'post_parent' => $post->ID,
'exclude' => get_post_thumbnail_id()
); ?>
<section id="content-case-study" class="clearfix">
<div id="left" class="hentry">
<h2><?php the_title(); ?></h2>
<h3><?php echo get_post_meta( $post->ID, 'project_title', true ); ?></h3>
<?php the_content(); ?>
</div>
<div id="right">
<nav class="cs-navigation">
<div class="goback"><a href="<?php echo bloginfo( 'url' ); ?>/client-type/case-study/">Go back</a></div>
<div class="next-cs"><?php be_next_post_link( '%link', 'See Next Case Study', true, 'case-study' ); ?></div>
</nav>
<p><?php the_post_thumbnail(); ?></p>
<?php $slider_title = get_post_meta( $post->ID, 'slider_title', true );
if($slider_title != '') {
echo '<h4>'.$link.'</h4>';
}
$attachments = get_posts( $args );
if ( $attachments ) {?>
<div id="slider">
<div id="slideshow">
<div class="slides_container">
<?php foreach ( $attachments as $attachment ) {
echo wp_get_attachment_image($attachment->ID , 'full' );
}?>
</div>
</div>
</div>
<?php } ?>
<div class="kudos">
<p><?php echo get_post_meta($post->ID, 'testimonial', true); ?></p>
<cite>— <?php echo get_post_meta($post->ID, 'client_name', true); ?></cite>
</div>
<?php endwhile; endif; ?>
</div>
</section>
</div><!-- end of main div -->
<?php get_footer(); ?>