Skip to content

Instantly share code, notes, and snippets.

@fovoc
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save fovoc/2ee171820d469880288b to your computer and use it in GitHub Desktop.

Select an option

Save fovoc/2ee171820d469880288b to your computer and use it in GitHub Desktop.
Maera - add Infinite Scroll support (WIP)
<?php
/**
* Add theme support for infinite scroll.
*
* @uses add_theme_support
* @return void
*/
function maera_infinite_scroll_init() {
add_theme_support( 'infinite-scroll', array(
'type' => 'scroll',
'footer_widgets' => false,
'container' => 'main',
'footer' => 'false',
'wrapper' => true,
'render' => false,
'posts_per_page' => false,
) );
}
add_action( 'after_setup_theme', 'maera_infinite_scroll_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment