Explorar o código

Add post_class function to single posts

Fixes #1386
Eduardo Zulian %!s(int64=5) %!d(string=hai) anos
pai
achega
f881c53400
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apostrophe-2/content-single.php

+ 1 - 1
apostrophe-2/content-single.php

@@ -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() ) { ?>
 	<?php if ( apostrophe_2_has_post_thumbnail() ) { ?>
 		<figure class="entry-thumbnail apostrophe-2-thumb">
 		<figure class="entry-thumbnail apostrophe-2-thumb">
 			<?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>
 			<?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>