- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
In short:
while in the loop:
I need to check if there is another loop entry, and if so add articles separator. Need to do it, so after all i’m not stuck with separator on bottom of looped posts (separator only between bosts, not after and between).
Anybody have a clue how to check it?
You can call $my_query->have_posts() inside the loop to determine if there are any further posts.
davesgonebananas – thanks for clue, will check it with next project.
I have checked this solution, and unfortunately it makes the loop goes infinite (after finishing first loop through posts, it starts it over and over again).
This is the code:
Indeed it does :-( Not to worry you can still check with this less concise code:
And this is working one :)