Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $query_string; //make sure these are in the correct format for post queries
- global $query_string1;
- // First loop
- $first_loop = new WP_Query( $query_string.'category_name=news&posts_per_page=3');
- while ( $first_loop->have_posts() ) : $first_loop->the_post() :
- $first_loop->the_content();
- endwhile;
- // second loop
- $second_loop = new WP_Query( $query_string1.'category_name=news&posts_per_page=3');
- while ( $second_loop->have_posts() ) : $second_loop->the_post() :
- $second_loop->the_content();
- endwhile;
- // Reset Post Data
- wp_reset_postdata();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement