WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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; ?>
share|improve this question
up vote 1 down vote accepted
$movies = new Wp_Query('tag=movie-reviews&posts_per_page=5');
share|improve this answer
worked perfectly thanks! – Joe Bobby Dec 11 '12 at 0:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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