Merge pull request #1322 from roots/better-support-for-cpt-templates
Ref #1033 - better support for CPT templates
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php get_template_part('templates/content', get_post_format()); ?>
|
||||
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php the_posts_navigation(); ?>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php get_template_part('templates/content', 'single'); ?>
|
||||
<?php get_template_part('templates/content-single', get_post_type()); ?>
|
||||
|
||||
Reference in New Issue
Block a user