• Resolved JG99

    (@jg99)


    Hello, I want to remove the category “count” numbers in parentheses when my categories are listed. I understand the 0 and 1 values more or less, but looking at the code below it seems my theme is a little more complicated than simply changing the 1 to a 0. I tried doing that and it had no effect at all. Can anyone help? THANK YOU.
    —————————————————-

    <?php
    }

    function widget_mytheme_categories($args) {
    extract($args);
    $options = get_option(‘widget_categories’);
    $c = $options[‘count’] ? ‘1’ : ‘0’;
    $h = $options[‘hierarchical’] ? ‘1’ : ‘0’;
    $title = empty($options[‘title’]) ? __(‘Categories’) : $options[‘title’];
    ?>

    • <h2><?php echo $title; ?></h2>
      <?php wp_list_cats(‘sort_column=name&optioncount=$c&hierarchical=$h’); ?>

    <?php

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I remove “counts” from Categories?’ is closed to new replies.