Loop to display children but not grandchildren
-
I’m using a simple loop for children of the current page:
[loop parent="this" clean="true"] <h5>[field "title-link"]</h5> [field "ii-child-summary"][/loop]
The child pages have children of their own which I don’t want included – is there a way to specify only first level children in the loop?
I can set up some kind of taxonomy to exclude the lower level pages, but if I can specify the depth of the query that would be perfect.LOVE your plugin!
Thx, Susan
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loop to display children but not grandchildren’ is closed to new replies.