Pages, Subpages, and links to them
-
Maybe this will help, from the main WP docs:
<div id=”submenu”>
-
<?php
if($post->post_parent) { // page is a child
wp_list_pages(‘sort_column=menu_order&title_li= &child_of=’.$post->post_parent);
}
elseif(wp_list_pages(“child_of=”.$post->ID.”&echo=0″)) { // page has children
wp_list_pages(‘sort_column=menu_order&title_li= &child_of=’.$post->ID);
}
?></div>
Should list all subpages in a separate DIV. Link to more info is http://codex.wordpress.org/Template_Tags/wp_list_pages
-
No, that won’t work here. We don’t edit our templates here at WordPress.com; we don’t have the access. This is covered in the sticky thread at the head of the forums called Read Me First.
- The topic ‘Pages, Subpages, and links to them’ is closed to new replies.