How to fetch an image from three levels

I am going to try my best to explain the issues I am having. I have a folder call furniture which is the main folder, then another folder call home office. Within the home office folder, I have a folder called bookcases where everything bookcases goes inside that folder.

The folders inside bookcases, if I move the folders outside bookcases to home office I can see the images. I want to keep everything together.

Thank you,

If I click on the product it will display product in that group. You can see down below.


Hi @ODD_CODE Which page is $page in your code snippet? If $page is the home office page, then bookcases is a child page ($page->children()), and the folders inside bookcases are the grandchildren.

Your information help.

Thank you.