Skip to content

Commit

Permalink
Prevent GPP from adding classes to post lists
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Feb 5, 2018
1 parent 7719122 commit 13e8f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-show-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>',
Expand Down

0 comments on commit 13e8f22

Please sign in to comment.