Exper Chaotic Flow
  • Archives

  • Spam Blocked

    • Random Images

      Untitled - Ref. Round-n2-7-3
      Untitled - Ref. Round-n2-7-3

      Perpetually Finite
      Perpetually Finite

      This time I
      This time I'll get it Right - New Order tribute

      A Drifter just like me
      A Drifter just like me

    Quotations

    "Those who travel very slowly may yet make far greater progress, provided they keep always to the straight road, than those who, while they run, forsake it."
    Rene Descartes, Discourse on the Method

    "Lo so che parlo perche' parlo ma che non persuadero' nessuno; e questa e' disonesta' - ma la rettorica mi costringe a forza a far cio' - o in altre parole "e' pur necessario che se uno ha addentato una perfida sorba la risputi"."
    C. Michelstaedter, La Persuasione e la Rettorica

    "Under a darkening sky / The night is falling down on me / And I'm thinking that I should / Head on home / Been gone too long / Leave my roaming"
    M. Knopfler and Emmylou Harris, Beachcombing



    Iscriviti al Vaffanculo Day

    WordPress - Sort catergory by ID

    5th June 2008

    I’ve recently updated my WordPress install form an old unsupported development branch to the new one and found that the Category listing is now printed in Alphabetical order instead of the old ID based old method.

    I have to say that I personally prefer the old ID sorting mode, it’s better suited to my own blog needing, so I browsed the codex and the forum to find a solution to put it back to the previous mode.
    I found a couple of plugins that can do the trick but they’re not the way I was looking for.
    Then I found this a very simple method by MichaelH; it only needs a small change editing one of the WordPress files and it works like a charm on every versions, as far as I can say.

    Here it is:
    open the “category-template.php” file
    change
    usort($categories, '_usort_terms_by_name');
    to
    usort($categories, '_usort_terms_by_ID');

    The complete article is available here: the_category sort by ID

    Leave a Reply