Advanced Menu Widget
[resolved] Missing menu whe using with category navigation (5 posts)

  1. grezvany13
    Posted 4 years ago #

    * not sure how to put the title, but this is the closest I could think of

    I'm using categoies for my navigation and this is working perfectly. Every menu item get it's correct classes (menu-item-parent, etc).

    My structure:
    - Home (page)
    - Category 1
    -- Category 1.1
    - - Category 1.2
    - Category 2
    -- Category 2.1
    -- Category 2.2

    All posts are attached to at least 1 category and are shown at the related category page.

    The first layer is fixed and shown with wp_nav_menu(array('depth'=>1))
    The second layer is shown with Advanced Menu Widget at the sidebar.

    Although here's the problem; the widget doesn't show the last child when I'm on a page.
    So when I go to a page at category 2.1, it doesn't show any menu items at the widget, where as the category page for 2.1 shows the right posts.

    My settings (other then default):
    - Select Menu: Main Menu
    - Show hierarchy: Only related sub-items
    - Starting depth: 1

    I know that the hierarchy is working, because when I set 'Show hierarchy' to 'Display All', it shows the items with the correct classes (menu-item-parent, menu-item-ancestor, etc).

    I've been playing with the settings, but nothing is working as I expect it to do. Not sure if it's a bug or a missing feature, but I would love to see it work.


  2. hedu64
    Posted 4 years ago #

    I have the same problem. It's perfect for almost all of the various submenu items, but it blows with the very first category.

    I use the same settings as Grezvany13, as these setting provide what I need. Except for the first category ....

  3. hedu64
    Posted 4 years ago #

    BTW, we try to debug this plugin in order to get it working for categories as sub menu items too.

  4. hedu64
    Posted 4 years ago #

    OK, it's due to the fact, that WordPress (core) does not differentiate between categories and taxonomies (in wp-includes\nav-menu-template.php line ~333).

    In our case we need to use also the plugin 'The Events Calendar'. There we gave an events category the same name as we named before a post category. This confuses WordPress and the plugin (which works perfectly!) has no chance for the right output.

    Solution: never use the same label within WordPress twice for categories (from various sources).

  5. ccbit
    Posted 3 years ago #

    Same problem here...

    The plugin is really awsome. But I got this problem:

    My Menu:

    - Home
    - Page1
    -- Subpage1.1
    -- Subpage1.2
    - Page2

    In the WordPress-Settings I choosed Subpage1.1 as article page (Settings -> Reading -> Posts page). Subpage1.1 shows the blogrol correctly. When I click "read more" on a post, the menu loses the reference. It looks like:

    - Home
    - Page1
    - Page2

    Like Grezvany13 told before, with the widget-settings 'Show hierarchy' to 'Display All' it works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Menu Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic