Does anyone know how to create a secondary menu bar that list child pages horizontally? I still want the regular drop over drop down list, but what I’m trying to accomplish is if you go to a page that has child pages, another menu bar appears right under the main navigation that list child pages. Harder to accomplish to me since wp_lis_pages/
Not sure if I got you right, but something like this should do the magic:
<?php $children = wp_list_pages('title_li=&child_of='.get_the_ID().'&echo=0'); ?> <?php if (isset($children)): ?> <ul> <?php echo $children; ?> </ul> <?php endif; ?>
I got this to work as a secondary menu that only shows if a child menu is present. NOW the client asked me to do siblings on child pages. meaning if they are on the child page, they want all the related pages. So I edited that code by adding siblings. The problem is, if its a page, that has not children or siblings, it pulls all the other top level pages that aren’t related. Any ideas.