Title: [Plugin: Special Recent Posts] add post-category css class?
Last modified: August 20, 2016

---

# [Plugin: Special Recent Posts] add post-category css class?

 *  [blau](https://wordpress.org/support/users/blau/)
 * (@blau)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-special-recent-posts-add-post-category-css-class/)
 * I need to dynamically add the post category as a CSS class to each SRP post item.
   There is no immediate option to do that in srp and srp PRO. Any idea how to do
   that?
 * For example:
 *     ```
       <div class="srp-widget-container">
       <h3 class="widget-title"></h3>
       <div id="srp-singlepost-1" class="THE-POST-CATEGORY srp-widget-singlepost srp-single-column">
       <div class="srp-thumbnail-box">
       <a class="srp-widget-thmblink" title="Bellezza e reazione" href="http://www.alfabeta2.it/2012/02/17/bellezza-e-reazione/">
       <img class="srp-widget-thmb" alt="Bellezza e reazione" src="http://www.alfabeta2.it/wp-content/plugins/special-recent-posts/cache/MTAwMTAwbm9lbmVsMi1maXhlZC00MTV4NTAwLWN1dA==.jpg">
       </a>
       </div>
       <div class="srp-content-box">
       <br style="clear:both; height: 0px;">
       </div>
       ```
   
 * [http://wordpress.org/extend/plugins/special-recent-posts/](http://wordpress.org/extend/plugins/special-recent-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [blau](https://wordpress.org/support/users/blau/)
 * (@blau)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-special-recent-posts-add-post-category-css-class/#post-2577548)
 * The plugin author made a patch that will go in the next release. Works very well.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Special Recent Posts] add post-category css class?’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/special-recent-posts_006699.svg)
 * [Special Recent Posts](https://wordpress.org/plugins/special-recent-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/special-recent-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/special-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/special-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/special-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/special-recent-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [blau](https://wordpress.org/support/users/blau/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-special-recent-posts-add-post-category-css-class/#post-2577548)
 * Status: not a support question