Viewing 1 replies (of 1 total)
  • Plugin Author Irina Sokolovskaja

    (@oriolo)

    Hi,
    you should modify inc/widgets.php.
    There are the code in the lines 42-49:

    $cat_args = array(
         'taxonomy' => $taxonomy,
         'orderby' => $orderby,
         'show_count' => $show_count,
         'pad_counts' => $pad_counts,
         'hierarchical' => $hierarchical,
         'title_li' => ''
    );

    Change it with the following:

    $cat_args = array(
         'taxonomy' => $taxonomy,
         'orderby' => $orderby,
         'show_count' => $show_count,
         'pad_counts' => $pad_counts,
         'hierarchical' => $hierarchical,
         'title_li' => '',
         'depth' => 1
    );

    It should resolve your problem

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude children categories in widget’ is closed to new replies.