Title: Adding icons.
Last modified: August 18, 2016

---

# Adding icons.

 *  [howcomical](https://wordpress.org/support/users/howcomical/)
 * (@howcomical)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-icons/)
 * I am making a movie review site for a friend. I want to have a different icon
   for each category (Good, bad, etc). I did a search and found a code that looks
   like this:
 * `<img src="<?php the_category() ?>.jpg">`
 * Well, that doesn’t work. On the site it shows up like this:
 * General.jpg”
 * The image itself is named General.jpg so I don’t think it’s a problem with the
   file name. Any ideas as to what I should do?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-icons/#post-142621)
 * If you do a search for category icons you will find a thread and a link to the
   plugin that can help you achieve this.
 *  [womby](https://wordpress.org/support/users/womby/)
 * (@womby)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-icons/#post-142649)
 * that bit of code should work but you should probably add a path to an images 
   directory of some kind before it
 * perhaps
 * `<imb src="/wp-content/cat_images/<?php the_category() ?>.jpg" />`
 * and dont forget alt text.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding icons.’ is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [womby](https://wordpress.org/support/users/womby/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/adding-icons/#post-142649)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
