/ Published in: PHP
Expand |
Embed | Plain Text
// First loop (get the last 10 posts in the "myVibe" category) <?php query_posts('category_name=myVibe&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <!-- Do stuff... --> <?php endwhile;?> //loop reset <?php rewind_posts(); ?> //Second loop (Get all posts) <?php while (have_posts()) : the_post(); ?> <!-- Do stuff... --> <?php endwhile; ?>
You need to login to post a comment.
