Is there way to display only immediate child pages in WordPress. For example, I have page and sub page structure like:
Page 1
Page 11
Page 111
Page 112
Page 12
Page 12
Page 2
Page 21
Page 22
Page 221
Page 222
So In above case, I want to list all child pages of Page 1 – Page 11, Page 12, Page 13. But I don’t want to be listed Page 111 and Page 112, which is WordPress’s default behavior.
Is there any way to do so?
Here,
Actually, I figure out http://codex.wordpress.org/Function_Reference/get_pages
Assume, I am browsing Page 1. To be noted, child_of= and parent= has same ID.