Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $query_string; // required
- $query_string_backup = $query_string;
- $posts = query_posts($query_string.'category_name=news&posts_per_page=3');?>
- <?php while ( have_posts() ) : the_post(); ?> <?php endwhile; ?>
- <!--Loop 2-->
- <?php wp_reset_query(); // reset the query ?>
- <?php
- $posts = query_posts($query_string_backup.'category_name=jobs&posts_per_page=3');?>
- <?php while ( have_posts() ) : the_post(); ?> <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement