Use post_class() #128

justintadlock opened this Issue Jan 10, 2017 · 1 comment


None yet

3 participants


In the following files, you must use the post_class() function to output the post class. If you need custom classes, you can pass them in directly, such as post_class( 'post-content example' ) or filter the post_class hook.

  • template-parts/content.php
  • template-parts/content-grid-small.php
  • template-parts/content-grid-wide.php
  • template-parts/content-search.php

We should've caught this in the first round, but it's not something we usually manually check because the WP Theme Check plugin typically picks it up. It didn't notice it because you use post_class() elsewhere in the theme.

@cristianraiber cristianraiber modified the milestone: Shapely 1.1.0 Jan 11, 2017

Fixed in: 188b1d6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment