• I have two questions regarding entry categories.
    1) Is there a way for these categories to be alphabetized when they are listed on the sidebar of site, rather than go in numerical order (in the order they were added)? I would rather for them to appear this way, so I’m curious if this is possible.
    2) Is there a way to reset the numbers of my categories? I named a few new categories when I first downloaded and installed WP, but decided that I wanted to start over with new ones so I deleted them. Now, instead of having categories 1, 2, 3, 4, etc., I have categories 1, 8, 9, 10. It’s really no big deal, but I’m one for wanting things to go in order, lol. 🙂
    Any help you can provide would be great!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter reverse

    (@reverse)

    Thanks for the help 🙂 Do you know how I could go about doing those two things? I’ve been looking around wiki for what you recommended, but I’ve only just downloaded this a few days ago and am really not all that familiar with it yet.

    http://wiki.wordpress.org/?pagename=list_cats
    sort_column’ – string – Sort by: possible values
    * ‘name’
    * ‘ID’ (default)
    sort_order’ – string – Sorting order: possible values
    * ‘asc’ (ascending) (default)
    * ‘desc’ (descending)

    Thread Starter reverse

    (@reverse)

    Okay, that makes a bit more sense. Is that code meant to go in the my-hacks.php file? Where do I get one of those (because it says on wiki that it should exist, but I don’t have one)?

    What is the function you are using in your index file to display the cats? I will post the code for you.

    <?php list_cats(1, ‘All’, ‘name’, ‘asc’); ?>
    or
    <?php wp_list_cats(‘optionall=1&sort_column=name’); ?>

    Thread Starter reverse

    (@reverse)

    Oh thanks so much, I copied the first code you supplied in the index file and it worked wonderfully. If I wanted to put the categories in a dropdown box, would I just paste the code in the same spot?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Questions about Categories’ is closed to new replies.