• I really needed a plugin to add nested categories to the menu, and found only this one. As others have stated, it’s broken.

    So I looked at the code – the coding style is actually very good – and found one bit of “magic” in the initialisation phase, where I could not understand what the author was trying to achieve, or how. It’s something to do with respecting a custom menu walker already installed by another plugin (or the theme), and trying to cooperate with it instead of overwriting it (the WordPress menu function at the heart of all this can only accept one “walker” argument).

    The respectful bit actually breaks the plugin. You can easily add a condition to force the own walker installation, then it works.

    Modify line 60 of submenu.php like this:

    OLD: if(!$this->public_walker){
    NEW: if(!$this->public_walker or true){

    Hope this helps some people. It would be FANTASTIC if the original author could sort this out (obviously he had good knowledge and good intentions, but something is broken in the meantime). Failing that, if another programmer could adopt this plugin – it is nicely written and fills a big hole in the WordPress Universe…

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Here is a fix to get it working’ is closed to new replies.