wordpress help of the day
wordpress help of the day
Out of context: Reply #1
- Started
- Last post
- 5 Responses
- acescence0
you can't use query_posts multiple times on the same page. query_posts is for modifying the main loop on a page with new parameters. for the second and third loops, you have to create new queries...
$my_second_query = new WP_Query( 'category_name=music&posts_per_p... );
while ($my_second_query->have_posts()) : $my_second_query->the_post();
// loop stuff
endwhile; endif;$my_third_query = new WP_Query( 'category_name=live&posts_per_pa... );
while ($my_third_query->have_posts()) : $my_third_query->the_post();
// loop stuff
endwhile; endif;- i have no idea what any of that means but thanks very much - i'll give it a gohans_glib