= 2.1){ //get pages from database $pageposts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'page' AND post_parent = '$post_parent' ORDER BY menu_order"); }else{ $pageposts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static' AND post_parent = '$post_parent' ORDER BY menu_order"); } if ($pageposts == true){ //if $pageposts == true then it does have sub-page(s), so list them. echo (0 === $post_parent) ? '
up or down to change the page order and left or right to change the page`s parent, then hit "update". ','pmash');?>
double click on that item to toggle expand|collapse of it`s children. ','pmash');?>
name="submit"/>
Appeaarance > Widgets]. Click the configure button on the widget and ensure that \'sort by\' is set to \'page order\'. Hey presto, you\'re done. ','pmash');?>
Code:
<?php wp_list_pages('title_li=<h2>Pages</h2>&depth=0'); ?>
wp_list_pages() in the Wordpress Codex as it is very well documented and if you have any further questions or feedback I like getting messages, so drop me an email.','pmash');?>