• Resolved Spencer Hill

    (@ws5f3dj7)


    Heya – so I’ve scoured the web and used and re-used plugins to permit me to use two navigations, each with drop/slide downs, but to no avail.

    I have two separate navigation areas, with separate elements, and each have drop downs.

    This seems to me to be a rather fundamental need that’s just not supported in WordPress which seriously sucks.

    Can anyone help? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Set up 2 sidebars?

    Thread Starter Spencer Hill

    (@ws5f3dj7)

    Actually, I found this solution:

    <?php
     if ( is_page() ) {
      if($post->post_parent)
        $children = wp_list_pages('exclude=2,3&exclude_tree=2,3&title_li=&child_of='.$post->post_parent.'&echo=0'); else
        $children = wp_list_pages('exclude=2,3&exclude_tree=2,3&title_li=&child_of='.$post->ID.'&echo=0');
      if ($children) { ?>
        <li>
          <h2><?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?></h2>
          <ul><?php echo $children; ?></ul>
        </li>
      <?php
        }
      }
    ?>

    That lists all the pages and their children. Without any additional styling. So from there I can style them how I please and according to my needs.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation, need help…’ is closed to new replies.