how to properly list child pages in sidebar?
Here is the code that satisfies all your 3 requirements above. <?php /* * get_page_depth * Gets the page depth, calls get_post on every iteration * https://gist.github.com/1039575 */ if ( !function_exists( ‘get_page_depth’ ) ) { function get_page_depth( $id=0, $depth=0 ) { global $post; if ( $id == 0 ) $id = $post->ID; $page = get_post( … Read more