Last active
December 12, 2015 12:48
-
-
Save fitzhaile/4774295 to your computer and use it in GitHub Desktop.
WP: Typical Testimonials Markup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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