jetpack_twentyseventeen_infinite_scroll_render

Custom render function for Infinite Scroll.

Description

jetpack_twentyseventeen_infinite_scroll_render(); 

Usage

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

Defined (1)

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

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