Merge pull request #323 from typeplus/master - Huge Thx @typeplus !
Specify correct post templates for jetpack infinite scroll.
This commit is contained in:
commit
f5f7b7598b
|
@ -37,9 +37,9 @@ function components_infinite_scroll_render() {
|
||||||
while ( have_posts() ) {
|
while ( have_posts() ) {
|
||||||
the_post();
|
the_post();
|
||||||
if ( is_search() ) :
|
if ( is_search() ) :
|
||||||
get_template_part( 'components/post/content', 'search' );
|
get_template_part( 'loop-templates/content', 'search' );
|
||||||
else :
|
else :
|
||||||
get_template_part( 'components/post/content', get_post_format() );
|
get_template_part( 'loop-templates/content', get_post_format() );
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue