Sidebar – List child and by page order?
-
I would like to organize my Pages sidebar menu to display the children of that page AND by page order (not alphabeticly). I found to two different snippets of code to do this, but I cant seem to combine them to do what I need.
Any help would be welcomed.
Display Childern (in alphabetic order.. not what I want)
<?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>
Sort by page order:
<ul> <?php wp_list_pages('sort_column=menu_order'); ?> </ul>
Thanks,
Casey
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sidebar – List child and by page order?’ is closed to new replies.