• flexmentalloishere

    (@flexmentalloishere)


    My site has categories with numbers next to each category. The number represents how many posts I have of said category. Is there any way to remove the numbers?

Viewing 5 replies - 1 through 5 (of 5 total)
  • niziol

    (@niziol)

    Just remove the optioncount=1 argument from the wp_list_cats tag and that should fix it up!

    Good luck,
    Michael.

    Thread Starter flexmentalloishere

    (@flexmentalloishere)

    Ok, where do I find the wp_list_cats tag? Is that in my edit themes section of my wordpress? I’m sorry, I’m very new at this.

    niziol

    (@niziol)

    Yes, I’m guessing the list you’re referring to is in the sidebar, so edit the sidebar.php file for your theme, just find the wp_list_cats tag, example below: wp_list_cats('sort_column=name&children=0&optioncount=1&hide_empty=1');

    And remove the optioncount=1 argument, like this:

    wp_list_cats('sort_column=name&children=0&hide_empty=1');

    That should fix it up for you.

    Cheers,
    Michael.

    Thread Starter flexmentalloishere

    (@flexmentalloishere)

    OK, I’m pretty sure this is what you’re talking about but I don’t see what you wrote. Can you tell anything by this?:

    • <h2><?php _e(‘Categories’); ?><br/>

      <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/h2.gif” class=”righth2img” alt=”h2″ /></h2>

      <?php list_cats(0, ‘all’, ‘name’, ‘asc’, ‘asc’, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”); ?>
    Thread Starter flexmentalloishere

    (@flexmentalloishere)

    It’s ok, I did it.

    <?php list_cats(0, ‘all’, ‘name’, ‘asc’, ‘asc’, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”); ?>

    It was the 3rd set of 1/0’s that I had to change to a 0.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Changes to the Categories’ is closed to new replies.