Title: Using Category Slug as Class
Last modified: September 1, 2016

---

# Using Category Slug as Class

 *  [artu](https://wordpress.org/support/users/artu/)
 * (@artu)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/using-category-slug-as-class/)
 * I love the List Category Post plugin and have set up a template to display my
   posts.
 * I really need to set the class of a div specified in the template as the category/
   categories of the post? Ideally I would use the category slug.
 * How do I update the template to do this?
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

The topic ‘Using Category Slug as Class’ 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: [artu](https://wordpress.org/support/users/artu/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/using-category-slug-as-class/)
 * Status: not resolved