Specify correct post templates for jetpack infinite scroll.

This commit is contained in:
Jason King 2017-05-18 14:23:26 +09:30 committed by GitHub
parent 6103e6d5e7
commit 0014477b9c
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ function components_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
if ( is_search() ) :
get_template_part( 'components/post/content', 'search' );
get_template_part( 'loop-templates/content', 'search' );
else :
get_template_part( 'components/post/content', get_post_format() );
get_template_part( 'loop-templates/content', get_post_format() );
endif;
}
}