[Solved] Sub navigation with identifable first and last items
|
3 posts
|
I’m using the following code to display the child items on the parent page and the sibling pages. But what I also need to do is identify the first and last items. I tried using a normal for loop however it completely messed up the page so nothing was displayed at all.
(btw how do I get the code box to display, I tried bc. but it didn’t work) |
|
1493 posts
|
Not sure about the first/last, but is this messing up your concatenation?
perhaps try it with
?? |
|
8 posts
|
A simple solution would be to load the children in an array first: |
|
3 posts
|
The solution renz suggested works perfectly. Thanks :) |