Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Created Apr 10, 2017

What would you like to do?
* 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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.