• I’m using the Connections theme on my blog, and I’m having a bit of a problem with the categories.

    I would like my categories displayed in alphabetical order, with the child categories under their parents, preferably indented. Does anyone know how I can make this happen in this particular theme? Or even how I can edit the category id numbers to change the order manually?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Changing the following in sidebar.php should do this for you:

    <ul><?php wp_list_cats('optioncount=1'); ?></ul>
    to
    <ul><?php wp_list_cats('optioncount=1&sort_column=name&sort_order=asc'); ?></ul>

    see Template Tags/wp list cats on the codex for more info.

    westi

    Thread Starter harlleye

    (@harlleye)

    Thanks for the help! Actually, it was the link you sent that was especially helpful; then I had to change the stylesheet as well. Here’s what I did:

    In the sidebar.php, changed this:

      <?php wp_list_cats(‘optioncount=1’); ?>

    to this:

      <?php wp_list_cats(‘sort_column=name&hide_empty=0&optioncount=1’); ?>

    In the Stylesheet, I added this:

    #sidebar ul.children {
    font-size: 1em;
    padding-bottom: 1em;
    background:#F3F6ED;
    border: none;
    border-top: none;
    }

    below this:

    #sidebar li a:hover, #sidebar li a:active {
    color: #990000;
    }

    Hopefully this will help anyone else who has the same problem!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Organizing categories with the Connections theme’ is closed to new replies.