This all works fine, and displays as needed. BUT — if this loop finds posts, then when I make a comment on any page, it shows up on the “premium” post and this comment also appears on ALL my posts — even making other comments disappear.
However, if this loop does NOT find posts, the comments seem to work as expected. It seems that the comments are somehow being sent within this loop usual
Can anyone discern what may be happening here? Thanks so much!
(@xiscomax)
14 years ago
I’m trying to use a loop inside the main loop of the single.php page.
This code is run just before calling the comments of staff.
Here’s the basic skeleton
This all works fine, and displays as needed. BUT — if this loop finds posts, then when I make a comment on any page, it shows up on the “premium” post and this comment also appears on ALL my posts — even making other comments disappear.
However, if this loop does NOT find posts, the comments seem to work as expected. It seems that the comments are somehow being sent within this loop usual
Can anyone discern what may be happening here? Thanks so much!
Here´s the complet skeleton
[Code moderated as per the Forum Rules. Please use the pastebin]
`
It shows me error on line 51 <? Php endwhile; else:?>
Thanks