Two loops, second one shows duplicate post
-
Hi everyone,
I’m having a problem with my loops as the second loop is showing duplicate posts. I’ve added this to the first loop:<?php while (have_posts()) : the_post(); ?><?php $displayed = $post->ID;?>and this to the second loop:<?php while ($my_query2->have_posts()) : $my_query2->the_post(); if ($post->ID == $displayed) continue;?>. I’ve even triedoffsetand it didn’t work.Here the full code from index.php: http://pastebin.com/pyPjPbGP.
All help is greatly appreciated. 🙂
Thanks and have a great night or day,
Gregory Schultz
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Two loops, second one shows duplicate post’ is closed to new replies.