Skip to content

Instantly share code, notes, and snippets.

@fitzhaile
Last active December 12, 2015 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitzhaile/4774295 to your computer and use it in GitHub Desktop.
Save fitzhaile/4774295 to your computer and use it in GitHub Desktop.
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