Title: class equal to category
Last modified: August 31, 2016

---

# class equal to category

 *  [alby54](https://wordpress.org/support/users/alby54/)
 * (@alby54)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/class-equal-to-category/)
 * Hi, I would like to assign icons to posts according to their category. To do 
   this I would like to know if there’s a way to set classes with the same category
   name of the post. In other words, the excerpt of the category post ‘document’
   should have the class ‘document’. Is it possible? Thanks.
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

The topic ‘class equal to category’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [alby54](https://wordpress.org/support/users/alby54/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/class-equal-to-category/)
 * Status: not resolved