• hey guys,

    i’ve been searching for an hour and can’t find the answer i think should be easy…

    I’d like to have 2 different loops on a page. one to display the content of category “News” and one to display the category “Shows”….

    How do i specify a particular category in each loop?!

    Your help would be greatly appreciated!

    thanks!
    ryder

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you have a chance to take a look at the examples of multiple loops on this page? > The_Loop

    Thread Starter ryder22

    (@ryder22)

    Moshu,

    Yeah, i read that over and over… but, all the examples are “If it’s in Category 3, THEN do this…” but all i want is something much simpler – “Display if it’s in Category 3″…

    Does this make sense?

    I imagine it’s something easy like the following that’s not an IF/THEN statement…
    <?php ( in_category(‘3’) ) { ?>

    You can make a custom query..

    <?php $queryname = new WP_Query('cat=1');
    while ($queryname->have_posts()) : $queryname->the_post(); ?>

    // Here's the loop

    <?php endwhile; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘multiple loops / different categories’ is closed to new replies.