forked from mirror/_s
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:
commit
ef5351227e
|
@ -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>' );
|
||||
|
|
Reference in New Issue