Support » How-To and Troubleshooting » [Resolved] Multiple Loop?

[Resolved] Multiple Loop?

  • I have litle question.

    I was mad more than Loop on my WP. First loop will show the post from categories 18 and other loop will loop post from categories 34.

    And I was add my first loop on index.php and other loop in sidebar.php with this code

    on index.php

    <?php include (TEMPLATEPATH . '/cat18.php'); ?>

    on sidebar.php

    <?php include (TEMPLATEPATH . '/cat34.php'); ?>

    My problem is, when I test in my browser. The loop not show all. My WP just show from cat18.php and the cat34 disappear.

    What wrong?

    This my cat18.php loop

    <?php query_posts('category_name=News&showposts=4'); ?>

    and on cat34.php loop

    <?php query_posts('category_name=Promo&showposts=4'); ?>

    *note News is my categories 18 and Promo is my categories 34.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Multiple Loop?’ is closed to new replies.