Activity Stream
48,167 MEMBERS
6722 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    HQMoviZ.us Football-Videos.info

    Default add an image to each category for wp

    hello guys
    i want to know the right way to add an image to each category for wordpress like Mukki.org and display it in homepage like mukki.org also
    abens24 Reviewed by abens24 on . add an image to each category for wp hello guys i want to know the right way to add an image to each category for wordpress like Mukki.org and display it in homepage like mukki.org also Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    TvLog.me
    google "category icons wordpress".

    [Best Selling RDP Providers]
    BuyWindowsVPS.Com
    1Gbit USA/EU Unmetered | Prices Starting From $29.95 | Official Thread

  4.     
    #3
    Member
    Website's:
    HQMoviZ.us Football-Videos.info
    i already did

    + if it was that easy i wouldnt create a thread about it

  5.     
    #4
    Member
    Website's:
    crackhack.org
    Plz Take a Look Here
    http://wordpresshacks.wordpress.com/...cons-per-post/
    Thanks

    --Edited--
    Use This Plugin
    http://wordpress.org/extend/plugins/category-icons/
    I Test It's Works,Tr it if Got Any Problem contact me lbeats@ymail.com

  6.     
    #5
    Member
    Website's:
    HQMoviZ.us Football-Videos.info
    thanks alot man

    i used category icons lite and it works great

  7.     
    #6
    Member
    Website's:
    tufos.net
    Or if you want to learn and do it manually you can try the following code putting it into your index.php (the one into your template folder not in root.) loop:

    PHP Code: 
    <?php
        
    if (in_category('1')) {
            echo 
    '<img src="/software.gif" />';
        } 
        elseif (
    in_category('2')) {
            echo 
    '<img src="/game.gif" />';
        }  
        elseif (
    in_category('3')) {
            echo 
    '<img src="/movie.gif" />';
        } 
        elseif (
    in_category('4')) {
            echo 
    '<img src="/music.gif" />';
        } 
        elseif (
    in_category('5')) {
            echo 
    '<img src="/tv_show.gif" />';
        } 
        elseif (
    in_category('6')) {
            echo 
    '<img src="/ebooks.gif" />';
        } 
        elseif (
    in_category('7')) {
            echo 
    '<img src="/mobile.gif" />';
        }
        else {
            echo 
    '<img src="/other.gif" />';
        }
    ?>
    Note that you will need to change category numbers according to your own

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Different css for different category.
    By r00ts in forum Wordpress
    Replies: 1
    Last Post: 1st May 2012, 11:11 AM
  2. Different CSS per category.
    By pi0tr3k in forum phpBB
    Replies: 10
    Last Post: 18th Jan 2012, 05:06 PM
  3. Proper category for an image hosting service?
    By Glumbo in forum Feedback and Suggestions
    Replies: 0
    Last Post: 3rd Dec 2011, 08:29 PM
  4. how do i change the image next to each forum category
    By Godly Chaos in forum vBulletin
    Replies: 1
    Last Post: 28th Jan 2011, 12:28 PM
  5. Get RSS of category ?
    By chipve in forum Webmaster Discussion
    Replies: 3
    Last Post: 16th Oct 2010, 05:24 PM

Tags for this Thread

BE SOCIAL