Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Foosho

    (@foosho)

    thnx for the quick reply. I also found several plugins, but I prefer code. After searching for a while, I found the following code, which should be placed in MYTHEME/functions.php.

    <?php
    function exclude_widget_categories($args){
    $exclude = “3,6,18”; // The IDs of the excluding categories
    $args[“exclude”] = $exclude;
    return $args;
    }
    add_filter(“widget_categories_args”,”exclude_widget_categories”);
    ?>

Viewing 1 replies (of 1 total)