Merge pull request #1001 from Clorith/master

Make the `content.php` more flexible with post types by using `is_singular()`
This commit is contained in:
David A. Kennedy 2017-06-10 01:26:55 -04:00 committed by GitHub
commit ef5351227e
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_single() ) :
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );