diff --git a/pagemash.php b/pagemash.php index 2bed955..ab307d7 100644 --- a/pagemash.php +++ b/pagemash.php @@ -65,7 +65,7 @@ Garrett Murphey - Page Link Manager [http://gmurphey.com/2006/10/05/wordpress-pl function pageMash_getPages($post_parent){ //this is a recurrsive function which calls itself to produce a nested list of elements //$post_parent should be 0 for root pages, or contain a pageID to return it's sub-pages - global $wpdb, $wp_version, $excludePagesFeature; + global $wpdb, $wp_version, $excludePagesFeature, $excludePagesList; if($wp_version >= 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{ @@ -78,7 +78,7 @@ function pageMash_getPages($post_parent){ echo '>'; foreach ($pageposts as $page): //list pages, [the 'li' ID must be the page ID] ?> -