HDD Killers

Categories

Posted on Thursday 20 October 2005

I’ve just added some blog categories for no particular reason, I guess it keeps things a bit more organised, but honestly I think that the way it applies them is a tad silly. For example, it allows you to have categories and sub categories. Fine, I understand that, so I created some:

  • PC’s

    • Games
    • Software
    • Hardware

But surely, if you want to place something in the Hardware category, then it is by definition also in the PC’s category, since Hardware is a sub-category of the PC’s category. However it would appear that this is not so, if you check the previous blog entry it now says, “Filed under: Web Development and CSS and Rants”. Surely a better description would be, “Filed under: Web Development–>CSS and Rants” or even perhaps just “Filed under: CSS and Rants”. It mentions the parent category as if it were completely separate, but it’s not, it’s just a general term of a more specific one.

Well anyway, enough of these musings, I’d like to hear any other thoughts on the matter. What do you think of the way WordPress handles categories and how could it be improved? Or perhaps you think it’s just right as it is.


  1.  
    Friday 21st October 2005 | 5:14 am
     
    Daniel's Globally Recognised Avatar

    Should be easily hackable. I’ll look into it and post my findings.

    BTW, what happened to Phill? The one from QR.

  2.  
    Friday 21st October 2005 | 5:46 am
     
    Daniel's Globally Recognised Avatar

    Okay, I seem to have gotten it do *kind of* do what you want. It involves editing wp-includes/wp-functions-category.php

    You just have to change line 78, or whatever comes after this line:

    $category->cat_name = $category->cat_name;

    Add in this below that line…

    $category->cat_text = ($category->category_parent) ?
    get_the_category_by_ID($category->category_parent).” » “.$category->cat_name :
    $category->cat_name;

    Now, the problem with this is that it will still show the parent in the list unless you remove it from the parent category and only place it in the subcategory.

    This is the best I can do now, as I’m very tired. I may look into it in more depth another day.

  3.  
    Ben Rogers
    Friday 21st October 2005 | 7:48 pm
     
    Ben Rogers's Globally Recognised Avatar

    I agree with the parent category thing…to an extent where I’m debating whether to program in sub-categories for my blogware. The subject of categories is something I’m all together iffy on. For example, if I had a subcateogires field, what would I do, go into each entry and search the subcategories field? Is the tiny help that provides really worth the effort?

    For example, if this were my blog, I’d put it under “musings,” and that’s it. And I’d probably use a blanket term for webdevelopment, so if someone was looking for technical advice, they’d search under that. I don’t have a solid opinion on them at all.

  4.  
    Friday 21st October 2005 | 10:40 pm
     
    Daniel's Globally Recognised Avatar

    Yeah, I see little point in subcategories. Tags are cool, though… yes, tags are nice.

  5.  
    Ben Rogers
    Monday 24th October 2005 | 2:15 am
     
    Ben Rogers's Globally Recognised Avatar

    Aren’t tags and subcategories the same basic thing, you wank?

  6.  
    Monday 24th October 2005 | 10:45 am
     
    David's Globally Recognised Avatar

    I have absolutely no idea what tags are.

    I don’t think I’ll bother trying to mod WordPress, I’d probably just stuff it up or something. Back to that same point again, why learn how WordPress works so I can mod it, if I can just write my own and know it inside out. Meh, I guess I just have a case of NIH Syndrome, although that article puts a distinctly negative spin on it.

Sorry, the comment form is closed at this time.