Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Created March 14, 2014 19:00
Show Gist options
  • Save shazdeh/9554452 to your computer and use it in GitHub Desktop.
Save shazdeh/9554452 to your computer and use it in GitHub Desktop.
JetPack Infinite Scroll support for Themify themes
<?php
function themify_infinite_scroll_init() {
add_theme_support( 'infinite-scroll', array(
'container' => 'loops-wrapper',
'render' => 'themify_infinite_scroll_render'
) );
}
add_action( 'after_setup_theme', 'themify_infinite_scroll_init' );
function themify_infinite_scroll_render() {
get_template_part( 'includes/loop' , 'index');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment