Use the post-type when choosing template partial

This commit is contained in:
Kelly Dwan 2019-10-09 14:31:24 -04:00
parent 847e99f44e
commit 3847e83cf3
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 6 additions and 10 deletions

View file

@ -9,7 +9,7 @@ get_header(); ?>
<?php while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/plugin', 'single' );
get_template_part( 'template-parts/content', get_post_type() );
endwhile; ?>
</main><!-- #main -->