Revision: 15222
Updated Code
at June 27, 2009 15:45 by zartgesotten
Updated Code
<?php global $wp_query; if( empty($wp_query->post->post_parent) ) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } ?> <?php if(wp_list_pages("title_li=&child_of=$parent&echo=0" )): ?> <div id="submenu"> <ul> <?php wp_list_pages("title_li=&child_of=$parent" ); ?> </ul> </div> <?php endif; ?>
Revision: 15221
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 27, 2009 14:45 by zartgesotten
Initial Code
<?php global $wp_query; if( empty( $wp_query->post->post_parent) ) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } ?> <?php if(wp_list_pages("title_li=&child_of=$parent&echo=0″ )): ?> <div id="submenu"> <ul> <?php wp_list_pages("title_li=&child_of=$parent" ); ?> </ul> </div> <?php endif; ?>
Initial URL
Initial Description
Initial Title
Wordpress display list of subpages and siblings if there are any
Initial Tags
wordpress
Initial Language
PHP