2010-10-14, 06:08:16
Sorry for the thread necromancy.
I want to know if there are sub-pages to a page. Typically these subpages would NOT be in the menu tree.
I'd like a function: get_child_slugs('page-slug')
that returns an array of child page slugs or null so I could for-each through them and build a menu (after content) listing all the child pages.
I see the code here should do this (or is close). Do I have to implement it as a plugin or can I just include this stuff in a custom functions.php?
-Rob A>
I want to know if there are sub-pages to a page. Typically these subpages would NOT be in the menu tree.
I'd like a function: get_child_slugs('page-slug')
that returns an array of child page slugs or null so I could for-each through them and build a menu (after content) listing all the child pages.
I see the code here should do this (or is close). Do I have to implement it as a plugin or can I just include this stuff in a custom functions.php?
-Rob A>