every under section, i want to store every category in a seperate <ul/> list
This is what i currently have, and there are 2 problems:

all content disappears from the categories, and a bunch more appear for some reason (no clue why this is happening: https://i.imgur.com/pNIGH2v.png)

not sure how to repeat this loop until section category is reached (forgive my poor logical thinking :D)

categories.tpl: (nodebb-theme-oxide)

Imgur Imgur Imgur Imgur Imgur Imgur