Support » Plugins » Numbers behind categories links

  • Hi,

    I see that some skins have numbers behind the categories, I got the RIN skin and that one doesn’t have this standard. Does anybody know how to put this in?

    Greetz all !

Viewing 14 replies - 1 through 14 (of 14 total)
  • Mark (podz)


    Support Maven

    <?php wp_list_cats('sort_column=name&optioncount=1'); ?>

    Try that ?

    uhm….can I just put it in the sidebar.php after the cat link ?
    It looks like this then:

    <h2><?php _e(‘Categories’); ?></h2>
    <?php list_cats(‘sort_column=name&optioncount=1’);?>

    But it doesn’t give me the numbers after the categories, look

    Maybe I got it at the wrong place?

    I got it with numbers now, took a line of code from another theme…..but the numbers are below the categories instead of after the categorie name.

    I’m using this line now:

    <h2><?php _e(‘Categories:’); ?></h2>
    <?php list_cats(FALSE, ”, ‘name’, ”, FALSE, TRUE, FALSE, TRUE); ?>

    And the menu looks like this:
    Digitall corner
    Maak’em of Kraak’em
    Opmerkelijk nieuws

    Instead of this:
    Digitall corner (3)
    Maak’em of Kraak’em (2)
    Opmerkelijk nieuws (4)
    Overig (5)
    Party (3)
    Sport (3)

    Use this :
    <h2><?php _e(‘Categories:’); ?>
    <?php list_cats(FALSE, ”, ‘name’, ”, FALSE, TRUE, FALSE, TRUE); ?></h2>

    It’s because of the CSS style in effect for the categories list. The CSS is necessary for the fixed-width highlite that you get when you hover on it.

    To modify it, find the following in the CSS file and just delete the whole thing.
    #sidebar ul li ul li a{
    display: block;
    height:1%; /* IE WIN */

    Don’t use my post ! I was too quick.. Read post just before this one 🙂
    That’s the problem !

    Yeah Thanks for the solution !!
    Got the monthly archives included also know, with numbers.

    There’s only one thing left. Every link, categorie or archive in the sidebar has an icon before it, except for the user counter. I think that <li > or < ul> things arrange that, but I used the same code as with the other links.

    This is the code from the Statistics (User(s) Online) and the Links bar, both used same code, but the links have icons before it and the user online doesn’t have it.

    try to put the users online in a li, not directly in the ul.

    When I do that, only thing changes is that the white block is gone, but still no icon.

    Hi StookerT, try checking your code with the w3-validator:
    Looks like you messed up your ul/li-structure. You can’t, for instance, put content directly in the ul. Good luck!

    Thanks for the tip, at first got like 12 or 15 errors….after some help here I only got 3 🙂

    Way to go! And I see you got the users-online-icon to show, too. 🙂

    Yeah, just needed an extra nested < li > </ li> there and that was also solved 🙂

    This wil put the amount of posts behind the categorie links in the sidebar:

    <h2><?php _e('Categorie'); ?></h2>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>

    Got the code standard with the angel theme.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Numbers behind categories links’ is closed to new replies.