Fetch query from parent page

It’s working, thanks for everything.
Hope i don’t get stuck anymore lol
This was probably the hardest part on my template, only problem with this is that categories with spaces break the code, i think ill add 2 fields to the structure, one for display and other for the code itself.