Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.