Sorry, my post had messed up. The word “here” was supposed to contain a link to that exact Codex post.
Is that solution supposed to work with get_pages
? I’ve tried to put that snippet of code to pretty much every part of the loop, and it doesn’t work.