Support » Plugin: wp_nav_menu Extended! » Show 3rd level submenus

  • Resolved chanceaob

    (@chanceaob)


    I would like to be able to have a submenu show when using the ‘child_of’ parameter. If I have Menu > Submenu > Submenu, I need to be able to show the 3rd level of menu in a drop down. Is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Junaid Bhura

    (@junaidbhura)

    Hi @chanceaob have you tried this?

    wp_nav_menu( array( 'theme_location' => 'main_menu', 'level' => 3, 'child_of' => 'Submenu' ) ); ?

    vilmosheim

    (@vilmosheim)

    Hi,

    I have the same problem when I try to echo my menu’s 3rd level the plugin returns (randomly) just some of my menu items.

    $menuParameterss = array(
    'theme_location' => 'header', 
    'level' => 3,
    );
    
    echo wp_nav_menu($menuParameterss);
    

    Here are some screenshots of my menu and the items that I receive: https://mega.nz/folder/YBonFSDY#H6wr5n8xsQSPG8OPBkc3XQ

    • This reply was modified 3 months ago by vilmosheim. Reason: Added some screenshots link
    Plugin Author Junaid Bhura

    (@junaidbhura)

    Hey @vilmosheim – Have you tried level in conjunction with child_of?

    Hey @junaidbhura
    I have tried it but my problem still exists. Let me show you an example:

    //menu structure
    Fruits (level 1)
      |— Apple (level 2)
           |— Fuji (level 3)
           |— Jonagold (level 3)
           |— Rome (level 3)
      |— Orange (level 2)
           |— Blood Orange (level 3)
      |— Banana (level 2)
           |— Cavendish Banana (level 3)
           |— Red Banana (level 3)
    Vegetables (level 1)

    And what I want is to be able to print level 3 (Fuji, Jonagold, Rome, Blood Orange, Cavendish Banana and Red Banana). And the problem is that it works for level 2 (Apple, Orange, Banana) but does not for level 3.
    child_of could be an option, but with the help of with that, I cannot print both Apple’s subitems, Orange’s subitems and Banana’s subitems.
    Do you have any idea how to solve it?

    • This reply was modified 2 months, 3 weeks ago by vilmosheim.
    Plugin Author Junaid Bhura

    (@junaidbhura)

    Hi @vilmosheim apologies for the delayed response.

    Ah I see what you’re saying. This is not possible using this plugin, you might want to take a look at creating a custom WP_Query for this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.