From 60f7311f1977179822e83c95745fa6787894959a Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Fri, 4 Dec 2015 15:51:58 +0100 Subject: [PATCH] Add support for post formats in single post --- single.php | 2 +- template-parts/content-single.php | 35 ------------------------------- template-parts/content.php | 6 +++++- 3 files changed, 6 insertions(+), 37 deletions(-) delete mode 100644 template-parts/content-single.php diff --git a/single.php b/single.php index 0de466fc..d8dd6c9a 100644 --- a/single.php +++ b/single.php @@ -15,7 +15,7 @@ get_header(); ?> - -
> -
- ', '' ); ?> - - -
- -
- '', - ) ); - ?> -
- -
- -
-
diff --git a/template-parts/content.php b/template-parts/content.php index 184bc062..3e54b3cf 100644 --- a/template-parts/content.php +++ b/template-parts/content.php @@ -12,7 +12,11 @@
>
', esc_url( get_permalink() ) ), '' ); + if ( is_single() ) { + the_title( '

', '

' ); + } else { + the_title( '

', '

' ); + } if ( 'post' === get_post_type() ) : ?>