1

Heres my current loop:

<?php if ( ! empty ( $GLOBALS['post'] ) && is_single() && in_category( 'movies', $GLOBALS['post'] ) ) :
$movies = new Wp_Query('tag=movie-reviews'); 
while ( $movies->have_posts() ) :
$movies->the_post(); ?>

<?php get_template_part( 'sidebar-reviews', get_post_format() ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
0
1
$movies = new Wp_Query('tag=movie-reviews&posts_per_page=5');
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.