hi.
im trying to make a custom navigation for the website using wp_list_pages or wswwpx_fold_page_list.
the idea of structure:
A
aa1
aa2
aa21
aa22
aa23
aa3
aa31
aa32
B
bb1
bb2
C
when in aa22->current position
i would like to show
aa1
aa2
aa21
aa22->current position
aa23
aa3
skiping all the top ABC adn the bb etc
the code below does almost good, but eliminates the parents if deeper than 2nd level.
also when using wswwpx_fold_page_list everything is almost fine, but i dont need the other BC top level navigation stuff.
<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>
thanks,
hardijs.