Add post_class function to single posts

Fixes #1386
This commit is contained in:
Eduardo Zulian 2019-09-03 19:31:54 -03:00 committed by GitHub
parent 6df503fbde
commit f881c53400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
*
*/
?>
<article id="post-<?php the_ID(); ?>">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( apostrophe_2_has_post_thumbnail() ) { ?>
<figure class="entry-thumbnail apostrophe-2-thumb">
<?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>