Move template parts into their own dedicated folder and update Infinite Scroll to reflect this change. See #642. Props @leopuleo.

This commit is contained in:
Philip Arthur Moore 2015-04-29 08:42:12 +07:00
parent ff6337943b
commit 71d4231cbe
11 changed files with 17 additions and 9 deletions

View file

@ -13,7 +13,15 @@
function _s_jetpack_setup() {
add_theme_support( 'infinite-scroll', array(
'container' => 'main',
'render' => '_s_infinite_scroll_render',
'footer' => 'page',
) );
}
} // end function _s_jetpack_setup
add_action( 'after_setup_theme', '_s_jetpack_setup' );
function _s_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_format() );
}
} // end function _s_infinite_scroll_render