<?php
$args = array(
‘post_type’ => ‘testimonial’,
‘posts_per_page’ => 3,
);
$query = new WP_Query( $args );
if ( $query->have_posts() )
while ( $query->have_posts() ) : $query->the_post();
$image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
$resizedimage = mr_image_resize($image,140,140);
$id = get_the_ID(); ?>
<div class=”testimonial-content-bg”>
<div class=”testimonial-contentt”>
<p class=”testimonial-content”><span>/images/quotes.png”/></span><?php echo get_the_content(); ?></p>
<?php $testimonial_name = get_post_meta( $id, ‘_ikcf_client’, true );
$testimonial_position = get_post_meta( $id, ‘_ikcf_position’, true );
//$testimonial_rating = get_post_meta( $id, ‘_ikcf_rating’, true ); ?>
<div class=”testimonial-review”>
<?php if($testimonial_name){ ?> <h4>-<?php echo $testimonial_name; ?></h4><?php } ?>
<span><?php if($testimonial_position){ echo $testimonial_position; } ?><?php// if($testimonial_rating){ echo $testimonial_rating; } ?></span>
<?php if($image){ ?> <p class=”client-img”>” alt=”<?php the_title(); ?>”/></p><?php } ?>
</div>
</div>
</div>
<?php endwhile; wp_reset_query(); ?>