• Hiyas!

    I upgraded to 1.5 and am loving the new them function. My thing is this:

    I wanted to create a separate archive page. I did so in by creating a new Page here:

    https://www.aigoo-chamna.net/?page_id=326

    I selected the Archives layout. In my archives.php this is what I have:

    <?php
    /*
    Template Name: Archives
    */
    ?>

    <?php get_header(); ?>

    <div id=”content” class=”widecolumn”>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <h2>Archives by Month:</h2>

      <?php wp_get_archives(‘type=monthly’); ?>

    <h2>Archives by Subject:</h2>

      <?php wp_list_cats(‘sort_column=name’); ?>

    </div>

    <?php get_footer(); ?>

    ————

    Why will it not alphabetise the categories? I tried everything. x_x;; Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Oddly, the code you posted doesn’t include <ul> tags around the wp_list_cats. Still, they appear on the page. I’m using the same code as the base of my archive page and I had to put the list tags in.
    That leads me to suspect the testing page could be using a different template than the one you’ve been editing. Don’t ask me *how* it could… maybe someone knows. Or maybe I’m just wayyyy off the track

    What if you tried adding some gibberish above the lists to prove my “theory” wrong?

    Try the nice archives plugin, that might be what you’re looking for allowing you to view archives based on author, start letter, date, month, year etc etc from drop down menus. Quite good

    Try list_cats rather than wp_list_cats:

    See the Codex for the correct syntax.

    Thread Starter tarachan

    (@tarachan)

    I tried Minna’s suggestion, I tried Ibessant, I fooled around the code syntax multiple times, and it still won’t do it. Now I’ll check out the Nice archives plugin

    ETA: I checked out Nicer Archives. It’s not what I want. I just wanna display the thing by Monthly (which is displaying the way I want) and the Categories which is being a stubborn thing that refuses to be alphabetised. x_x;;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code for Alphabetising Categories (Archives/Post)’ is closed to new replies.