• Hi everyone!

    I was hoping to find some direction with a menu issue I’m having.

    What I’m trying to do is create a menu that has no more than three levels.

    I need the dropdowns to be no more than a list of 5 long… Like this:

    Button 1 Child 1 Grandchild 1 Grandchild 6
    Button 2 Child 2 Grandchild 2 Grandchild 7
    Button 3 Child 3 Grandchild 3 Grandchild 8
    Button 4 Child 4 Grandchild 4
    Button 5 Child 5 Grandchild 5

    So I was wondering if it’s possible to say something in the PHP that says the equivalent of:

    <div class=”grandchild-col”>
    List child pages 1 – 5
    </div>
    <div class=”grandchild-col”>
    List Child Pages 6 – 10
    </div>

    Something along the lines of that.

    If anyone out there has any suggestions that would be fantastic!

    Thanks! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • I suggest you learn to work with wp_list_pages
    https://codex.www.ads-software.com/Template_Tags/wp_list_pages
    It contains what you need to make that menu if you learn how to work with it.

    Thread Starter Trozdol

    (@trozdol)

    Thanks for the suggestion, but I can’t seem to find a way to list a generic number of child pages vs listing specific IDs. Maybe I’m missing something?

    make parent pages, assign the pages you want in each list to the same parent page as child pages. Then using wp_list_pages display only the child pages of one parent page, by ID

    Thread Starter Trozdol

    (@trozdol)

    That’s not really the issue I’m having. What I want to do is limit the number of pages in a list then the remaining fall into another list next to it.

    So I have 5 main pages. One page has 5 child pages. A few of those have child pages that exceed 5. The list is vertical (5 tall). The pages that have more than 5 child pages I want to be shown in 2 columns. Side by side.

    The goal behind this is to not have the site scroll in most conditions. Which is pain in the ass, but that’s what the person wants. Also the client does not want the navigation to cover up anything else. So it all needs to be contained within a certain size area which also happens to be in the footer. So no actual drop down just appear to the side.

    Thanks for the help!

    If these are static pages and the list is permanent, meaning new list items aren’t going to be added frequently, consider the new WP 3.0 custom menus feature, which gives you complete control over what goes where and what it is grouped with.

    You style it all with CSS so it can look however you want.

    Thread Starter Trozdol

    (@trozdol)

    God I wish! It’s for an architectural company’s portfolio section. 5 categories with roughly 13 projects per. They want to be able to add or subtract projects listed.

    I think I’m getting close to a solution though. I’m trying to float the list items inside of a dropdown menu so they don’t get taller than 5. Or create a div containing the child pages that’s visible when hovering over the category. It’s been a tricky mess trying to keep it dynamic. :/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multi Column Menu – breaking a list’ is closed to new replies.