WordPress.org

Ready to get started?Download WordPress

Forums

Category icons? (11 posts)

  1. tarheelian
    Member
    Posted 10 years ago #

    Hey, is it possible that a hack could be written to allow category icons, sort of like the ones you see on Geek Log, PHP-Nuke, etc. I've tried to make it work, but haven't had any success. I don't know how hard it would be to make a hack for this because of the multiple-categories per entry, but if it could be done, that would be great! Thanks!

  2. OperaManiac
    Member
    Posted 10 years ago #

    why do people need to create multiple post for same question?

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    Do you actually need multiple categories? Because if you don't, you might be best off installing an earlier version of WordPress - or b2, if you can't get hold of one - where you can do it very simply with the methods you already tried on the other thread. I think Laughing Lizard had a zip of 0.72 for download from his site.

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    Susubh: the original question was 'how do I get category icons in WordPress'. It turned out to be impossible as things stand, so now he is requesting a hack to make it possible. Two different posts with two different requests.

  5. OperaManiac
    Member
    Posted 10 years ago #

    hmm.
    then a good heading can be!
    some one make me a hack for category icon
    :p i am in a bad mood today... ignore my idiotic comments.
    i want a hack to take shots out of videos. no help for me...

  6. gat
    Member
    Posted 10 years ago #

    it's simple without hacking so much..
    prepare some image files like:
    general.gif - internet.gif ..and so on for each category..
    put them wherever you want, and do something like that in your template
    <pre>
    <img src="<?php the_category(''); ?&gt.gif" alt="<?php the_category(''); ?&gt"&gt
    </pre>
    and you've done it...

  7. gat
    Member
    Posted 10 years ago #

    SORRY I BROKE SOMETHING IN THE PREVIOUS POST.. this is the right one...
    it's simple without hacking so much..
    prepare some image files like:
    general.gif - internet.gif ..and so on for each category..
    put them wherever you want, and do something like that in your template
    <pre>
    <img src="<?php the_category(''); ?>.gif" alt="<?php the_category(''); ?>">
    </pre>
    and you've done it...

  8. WillM
    Member
    Posted 10 years ago #

    Yeah, but as has already been pointed out on the other thread, you can't create a link to all posts in a category using that method. And you'd need ',' in those parameters in any case.

  9. gat
    Member
    Posted 10 years ago #

    it worked for me several layouts ago ;)

  10. WillM
    Member
    Posted 10 years ago #

    That was probably also several builds of WordPress ago ;)
    Anyway, Matt has now written a hack for this.

  11. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.