From 3847e83cf3e5ed930658cf23402174a127b3fbff Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Wed, 9 Oct 2019 14:31:24 -0400 Subject: [PATCH] Use the post-type when choosing template partial --- themes/wporg-5ftf/archive.php | 14 +++++--------- themes/wporg-5ftf/single.php | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/themes/wporg-5ftf/archive.php b/themes/wporg-5ftf/archive.php index 5fcc779..e493d07 100644 --- a/themes/wporg-5ftf/archive.php +++ b/themes/wporg-5ftf/archive.php @@ -26,23 +26,19 @@ get_header(); ?> while ( have_posts() ) : the_post(); - /* - * Include the Post-Format-specific template for the content. - * If you want to override this in a child theme, then include a file - * called content-___.php (where ___ is the Post Format name) and that will be used instead. - */ - get_template_part( 'template-parts/content', 'page' ); + get_template_part( 'template-parts/content', get_post_type() ); endwhile; the_posts_pagination(); - else : + ?> + + + endif; ?> diff --git a/themes/wporg-5ftf/single.php b/themes/wporg-5ftf/single.php index 075525b..b032a85 100644 --- a/themes/wporg-5ftf/single.php +++ b/themes/wporg-5ftf/single.php @@ -9,7 +9,7 @@ get_header(); ?>