'main', 'footer' => 'page', 'render' => 'wilson_infinite_scroll_render', 'footer_widgets' => array( 'sidebar-2', 'sidebar-3' ), ) ); /** * Add support for site logo. */ add_image_size( 'wilson-site-logo', '300', '300' ); add_theme_support( 'site-logo', array( 'size' => 'wilson-site-logo' ) ); /** * Add support for responsive videos. */ add_theme_support( 'jetpack-responsive-videos' ); } add_action( 'after_setup_theme', 'wilson_jetpack_setup' ); if ( ! function_exists( 'wilson_infinite_scroll_render' ) ) { function wilson_infinite_scroll_render() { while ( have_posts() ) { the_post(); $contentpart = get_post_format(); if ( 'image' == $contentpart || 'video' == $contentpart ) $contentpart = 'media'; get_template_part( 'content', $contentpart ); } } }