From 13e8f2222c422366430cd21f49d663fe9c0de983 Mon Sep 17 00:00:00 2001 From: tomusborne Date: Mon, 5 Feb 2018 12:53:57 -0800 Subject: [PATCH] Prevent GPP from adding classes to post lists --- wp-show-posts.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-show-posts.php b/wp-show-posts.php index c81fb0d..a9a937f 100644 --- a/wp-show-posts.php +++ b/wp-show-posts.php @@ -404,7 +404,9 @@ function wpsp_display( $id, $custom_settings = false ) { } // Merge our classes with the post classes. + remove_filter( 'post_class', 'generate_blog_post_classes' ); // Remove GPP classes. $settings['inner_wrapper_class'] = array_merge( $settings['inner_wrapper_class'], get_post_class() ); + add_filter( 'post_class', 'generate_blog_post_classes' ); // Re-add them. // Start inner container printf( '<%1$s class="%2$s" itemtype="http://schema.org/%3$s" itemscope>',