Treehouse: Grow your CSS skills. Land your dream job.

Two level navigation in WordPress?

  • # January 7, 2010 at 6:09 pm

    Hey all,

    I’m looking to create a site that will have a main navigation (Home, About etc..) on one level and right below it a secondary navigation leading to other pages. This is the exact thing I’m looking to create:

    That site is not built on WordPress but I know WordPress can do it. Any help? :)

    # January 7, 2010 at 7:22 pm

    Upon thinking about this more, it seems I could achieve this with wp_list_pages function to generate the two different navigations and then pass an argument to include (or exclude, in this case probably) certain page ID’s.

    Am I going in the right direction or is there an easier way? I’d prefer to not use a plugin if I can help it (I’m a bit of a purist), unless the plugin makes it that much easier.

    # January 8, 2010 at 2:04 am

    You beat me to it yourself! Yes, it’s really that simple. If there’s an easier way, I can’t think of it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.