List Child Pages
-
Hi! I’m finally starting to get my hands around customizing wordpress and i’m having great fun with it.
I do have one glitch that is driving me batty.
I’m using the below code to display a sub page navigation element.
<?php
global $wp_query;if( empty($wp_query->post->post_parent) ) {
$parent = $wp_query->post->ID;
} else {
$parent = $wp_query->post->post_parent;
}wp_list_pages(“&sort_column=menu_order&depth=3&title_li=”);
?>It works great on every page I use it on except for one. On that one page, it displays all of the top level pages including the page its on.
Any suggestions would be greatly appreciated.
Thx
Marty
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘List Child Pages’ is closed to new replies.