Просмотр исходного кода

Merge pull request #1387 from Automattic/eduardozulian-patch-1386

Apostrophe 2: Add post_class function to single posts
Daniel Dudzic 5 лет назад
Родитель
Сommit
89a950052f
1 измененных файлов с 1 добавлено и 1 удалено
  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() ) { ?>
 		<figure class="entry-thumbnail apostrophe-2-thumb">
 			<?php the_post_thumbnail( 'apostrophe-2-featured' ); ?>