Skip to content

Instantly share code, notes, and snippets.

@fitzhaile fitzhaile/*.php
Last active Dec 12, 2015

Embed
What would you like to do?
WP: Typical Testimonials Markup
<?php $testimonials = new WP_Query('post_type=testimonial'.ks_query('testimonials')); ?>
<div class="testimonials">
<?php while( $testimonials->have_posts() ): $testimonials->the_post(); ?>
<blockquote class="testimonial">
<?php the_content(); ?>
<footer>
<p>
<?php the_title(); ?>
</p>
</footer>
</blockquote>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div><!-- /.testimonials -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.