Make the `content.php` more flexible

replace `is_single()` with `is_singular()` to make sure custom post types are accounted for by default
This commit is contained in:
Marius 2016-08-07 21:22:32 +02:00 committed by GitHub
parent f9471cdfb7
commit 46528fa9b2
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>' );