I have a snippet that fetches all the grandChildren of a specified page. What I want to do now is to output HTML tags depending on the grand child’s parent.
This is what my pages looks like:
- Burger 1
- Burger 2
- Sides 1
- Sides 2
So my current snippet fetches all the grandChildren of Menu page. I need to output for example DIV tag if the parent is Burgers, else I would output SECTION if parent is Sides.
Of course I can achieve this with separate snippets but would like to do it in one snippet only.
Appreciate the help. Thank you.