From 0014477b9c4a48f8774ac6caf5399f7e402be7a1 Mon Sep 17 00:00:00 2001 From: Jason King Date: Thu, 18 May 2017 14:23:26 +0930 Subject: [PATCH] Specify correct post templates for jetpack infinite scroll. --- inc/jetpack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/jetpack.php b/inc/jetpack.php index a1a1603..a2305cc 100644 --- a/inc/jetpack.php +++ b/inc/jetpack.php @@ -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; } }