Search page: Determining if it is last post
-
Hi,
I modified my search page so that the search results have a line between each entry. What I did was that I included a <hr> tag inside the loop. The problem with this is that it adds a line even after the last result.
I guess the solution is to have an if statement determining whether the next result will be the last one. Unfortunately, I’m having problem finding out how to do this. Any thoughts/alternative solutions would be appreciated!
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Search page: Determining if it is last post’ is closed to new replies.