ich bin mir nur nie ganz sicher, was du mit 2. query und auch loops jetz genau meinst, und vor allem auch welcher datei...!
Dann frag. ;-) Mit den Codeschnippseln wirds ja schon was, da kommen wir der Sache schon näher denke ich.
Query und Loop sind aber vom Prinzip her schon klar, oder? Ich mein du hantierst ja damit...
Zitat
habe es versucht mal so einzufügen, aber so ganz scheint das auch nicht zu stimmen!
Haut fast hin. Kleine Änderung:
[del][COLOR="Red"]<?php $do_not_duplicate[] = $post->ID; ?>[/COLOR] [/del]
<?php
$featuredcat = get_option('371,370,372,374,50,21,378'); // ID of the Featured Category
$the_query = new WP_Query('category_name=' . $featuredcat . '&showposts=5&orderby=post_date&order=desc');
$counter = 0;
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate[COLOR="magenta"][B][][/B][/COLOR] = $post->ID;
?>
Alles anzeigen
<?php var_dump($do_not_duplicate); ?>
[COLOR="#ff0000"][del]<?php $do_not_duplicate = array(); ?>[/del][/COLOR]
<?php
include(TEMPLATEPATH . '/includes/version.php');
$the_query = new WP_Query(array(
'post__not_in' => $do_not_duplicate,
'showposts' => $showposts,
'orderby' => 'post_date',
'order' => 'desc'
));
$counter = 0; $counter2 = 0;
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
Alles anzeigen
So müsste es passen. Im Theme ist die $do_not_duplicate-Funktion ja im Ansatz schon vorhanden, ich hab dir mal versucht zu markieren wie ich die genau einsetze. Vielleicht bringt das bissl Klarheit rein.