DPS – Add post type class to posts

 * Display Posts Shortcode, add post type class 
function be_dps_post_type_class( $classes ) {
  $classes[] = get_post_type();
  return $classes;
add_filter( 'display_posts_shortcode_post_class', 'be_dps_post_type_class' );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk