• Resolved jpegtobbe

    (@jpegtobbe)


    It seams that the latest version doesnt work when you have the widget in a mega menu.

    When you removed ‘taxonomy’ => ‘product_cat’ from wp_list_categories function it just shows “No sub-categories” in my menu.
    I have tried to add the ‘taxonomy’ part in version 1.5.1 and then it works again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 393930

    (@anonymized-393930)

    The only change in the last version was to support php 7.2 and that change was backwardly compatible so wouldn’t have broken anything.

    ‘taxonomy’ => ‘product_cat’ has never been set in any version – that must have been your customization which would have been overwritten when you upgraded.

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Well, i think you have to compare your versions. I havent changed anything in your plugin.

    On row 68 in sub-categories-widget.php it looks like this in the two versions:

    Version 1.5
    $subs = wp_list_categories(array($parent => $category_id, ‘hide_empty’ => $hide_empty_cats, ‘taxonomy’ => ‘product_cat’, ‘show_count’ => $show_post_count, ‘exclude’ => $excluded, ‘title_li’ => null, ‘show_option_none’ => ”, ‘echo’ => 0, ‘order’ => $order));

    Version 1.5.1
    $subs = wp_list_categories(array($parent => $category_id, ‘hide_empty’ => $hide_empty_cats, ‘show_count’ => $show_post_count, ‘exclude’ => $excluded, ‘title_li’ => null, ‘show_option_none’ => ”, ‘echo’ => 0, ‘order’ => $order));

    As you can see the “‘taxonomy’ => ‘product_cat'” is removed in version 1.5.1

    Anonymous User 393930

    (@anonymized-393930)

    That’s not the the code I have, nor the code in the WordPress repo for this plugin. Your copy has been customized: product_cat is not a standard taxonomy.

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Ah.. sorry. Maybe i have done the change in the past to get it to work and forgot about it.
    My apologies!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stopped working in Mega Menu’ is closed to new replies.