I need to paginate youngster and grandchild pages of a mother or father web page. My code works, nevertheless it skips granchild pages and goes to the subsequent youngster web page. How can I alter this code to additionally embrace grandchildren?
- Guardian web page
- Little one 1
- Little one 2
- Grandchild (youngster of two)
- Little one 3
On Little one 1, I would like “next” to go to Little one 2, and nothing as “previous. On Child 2 I want Grandchild to be the “subsequent.” On Grandchild, I want “subsequent” to be Child 3 and “earlier” to be Little one 2.
Leave a Reply