Title: content_class not working
Last modified: July 25, 2024

---

# content_class not working

 *  Resolved [antonioonwp](https://wordpress.org/support/users/antonioonwp/)
 * (@antonioonwp)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/content_class-not-working/)
 * I have this shortcode which is working fine besides the content class is not 
   coming through.
   [display-posts post_type=”case” category=”small businesses” wrapper
   =”div” wrapper_class=”case-slider” content_class=”case-block” image_size=”medium”
   include_excerpt=”true” excerpt_length=”30″ include_excerpt_dash=”false” excerpt_more
   =”Read more” excerpt_more_link=”true” include_link=”true”]
 * it outputs the following:
   <div class=”listing-item slick-slide slick-current 
   slick-active” data-slick-index=”0″ aria-hidden=”false” style=”width: 390px;” 
   tabindex=”0″>I have tried to change the content_class to various classnames with
   dash, underscore, or without.No errors shown in Console.I’m on the latest update.

Viewing 1 replies (of 1 total)

 *  Thread Starter [antonioonwp](https://wordpress.org/support/users/antonioonwp/)
 * (@antonioonwp)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/content_class-not-working/#post-17912851)
 * Looking through the code I now see that this class option is for when you want
   to show the content.
   It’s not to add a class to the each “case” which is what
   I understood at first.

Viewing 1 replies (of 1 total)

The topic ‘content_class not working’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [antonioonwp](https://wordpress.org/support/users/antonioonwp/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/content_class-not-working/#post-17912851)
 * Status: resolved