WordPress.org

Forums

wp list cats (7 posts)

  1. Simon Clark
    Member
    Posted 9 years ago #

    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.

  2. oriecat
    Member
    Posted 9 years ago #

    What is the exact tag you are using?

  3. Kafkaesqui

    Posted 9 years ago #

    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.

  4. oriecat
    Member
    Posted 9 years ago #

    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.

  5. Simon Clark
    Member
    Posted 9 years ago #

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>

  6. imperialman
    Member
    Posted 9 years ago #

    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!

  7. Kafkaesqui

    Posted 9 years ago #

    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 */
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.