Loop breaking need help
-
Hello,
I’m am using two loops in the homepage, let say featured post and normal posts, and looking for solution for my problems.
Using this layout, I would need two loops to make it run properly. My problem is: when I break the first loop with theses codes:
<?php static $ctr = 0;
if ($ctr == “1”) { break; }
else { ?><?php $ctr++; } ?>
There’s a featured post section as I want. But, instead of begin with the second most recent post, the second loop shows the third recent post as the first post.
Any help would be appreciated. And sorry for my bad English. And I hope I make myself clear.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loop breaking need help’ is closed to new replies.