Created
November 3, 2014 20:28
-
-
Save nikibrown/b58b79533b3c300b7add to your computer and use it in GitHub Desktop.
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 | |
$args = array ( | |
'post_type' => 'post', | |
'posts_per_page' => '-1', | |
); | |
$query = new WP_Query( $args ); | |
if ( $query->have_posts() ) { | |
while ( $query->have_posts() ) { | |
$query->the_post(); | |
} ?> | |
<blockquote> | |
<?php the_field('review_text'); ?> | |
</blockquote> | |
<cite> | |
<?php the_field('review_source'); ?> | |
</cite> | |
<img class="logo" src="<?php the_field('review_logo'); ?>" alt="<?php the_title(); ?>"> | |
<?php } else { } wp_reset_postdata(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment