/ Published in: PHP
Expand |
Embed | Plain Text
<!-- loop name --> <?php $myloop = new WP_Query('category_name=CATEGORY&showposts=3'); while ($myloop->have_posts()) : $myloop->the_post(); ?> <!-- To store the IDs in a array --> <?php $myloop = new WP_Query('category_name=CATEGORY&showposts=3'); --> while ($myloop->have_posts()) : $myloop->the_post(); &myloopids[] = $post->ID ?> <!-- Posts in my loop but skipping the posts (IDs) in the array loop above <?php while (have_posts()) : the_post(); ?>
You need to login to post a comment.
