Support » Fixing WordPress » wp list cats

  • I have the option

    sort_column=name

    and correct me if im wrong the categorys should be in a-z order but that is not hapening. Also when i display the number of posts after the cattegory it has them like this

    Work
    (1)
    Uncategorized
    (4)

    How do i get it like

    Work (1)
    Uncategorized (4)

    I’m using blix

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • What is the exact tag you are using?

    I would imagine it’s wp_list_cats…

    I can’t say what the problem would be with sort_column in your case. In older versions of 1.5.x there was a bug that caused sorting by name to fail, but you seem to be running 1.5.1.3. So again, not sure.

    The issue with post count being pushed to the next line is due to links being set to display:block in the theme’s css. Look for this declaration in layout.css:

    #subcontent li a {
    display:block;
    padding:1px 0;
    height:1%; /* IE WIN */
    }

    and remove the display property from it.

    I imagine it’s wp_list_cats as well, but he could have his arguments formatted wrong, which is why it would be helpful to see exactly how he has it in the template.

    <ul class=”categories”>
    <?php wp_list_cats(‘sort_column=name&hide_empty=0’); ?>

    I’m still having the problem where the category post count shows up on the second line, for Blix.

    I removed display:block; and that does put the post count on the same line for Firefox. However, it doesn’t fix it for Internet Explorer.

    Does anyone know how to get IE to work with this?

    The site I’m trying to fix is http://www.baerguide.com

    Thanks!

    imperialman, looking at your layout.css:

    #subcontent li a {
    // display:block;
    padding:1px 0;
    height:1%; /* IE WIN */
    }

    You cannot use // to comment out a css line. You have to use c-style commenting:

    #subcontent li a {
    /* display:block; */
    padding:1px 0;
    height:1%; /* IE WIN */
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp list cats’ is closed to new replies.