I am updating the theme for Kirby 4. The shuffle function worked well with the selection of the respective children. Now I would like to shuffle all pages of the type work. What do I have to change here?
That would work if your pages with that template were on the first level. To get all pages with that template no matter where they are in the tree , you’d have to go via site()->index()
Please check the documentation to understand what the variables give you.