Simpler code than this?
-
This is a second loop, which is designed not to show any posts that were in the first loop.
But – is there a way of simplifying the latter bit, given that I have a hundred thumbnails perhaps to show?
<?php query_posts('order=DESC&showposts=100&cat=3'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); if($post->ID == $do_not_duplicate[0] || $post->ID == $do_not_duplicate[1] || $post->ID == $do_not_duplicate[2] || $post->ID == $do_not_duplicate[3] || $post->ID == $do_not_duplicate[4] || $post->ID == $do_not_duplicate[5] || $post->ID == $do_not_duplicate[6] || $post->ID == $do_not_duplicate[7] || $post->ID == $do_not_duplicate[8] || $post->ID == $do_not_duplicate[9] || $post->ID == $do_not_duplicate[10] || $post->ID == $do_not_duplicate[11] || $post->ID == $do_not_duplicate[12] || $post->ID == $do_not_duplicate[13] || $post->ID == $do_not_duplicate[14] || $post->ID == $do_not_duplicate[15] || $post->ID == $do_not_duplicate[16] ) continue; update_post_caches($posts); ?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Simpler code than this?’ is closed to new replies.