twentysixteen_infinite_scroll_render

Custom render function for Infinite Scroll.

Description

twentysixteen_infinite_scroll_render(); 

Usage

  1. if ( !function_exists( 'twentysixteen_infinite_scroll_render' ) ) { 
  2. require_once '/modules/infinite-scroll/themes/twentysixteen.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentysixteen_infinite_scroll_render(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/infinite-scroll/themes/twentysixteen.php  
  1. function twentysixteen_infinite_scroll_render() { 
  2. while ( have_posts() ) { 
  3. the_post(); 
  4. if ( is_search() ) { 
  5. get_template_part( 'template-parts/content', 'search' ); 
  6. } else { 
  7. get_template_part( 'template-parts/content', get_post_format() );