forked from mirror/_s
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:
parent
f9471cdfb7
commit
46528fa9b2
|
@ -12,7 +12,7 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<?php
|
<?php
|
||||||
if ( is_single() ) :
|
if ( is_singular() ) :
|
||||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||||
else :
|
else :
|
||||||
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
||||||
|
|
Reference in New Issue