3 * The template for displaying featured content
6 * @subpackage Twenty_Fourteen
7 * @since Twenty Fourteen 1.0
11 <div id="featured-content" class="featured-content">
12 <div class="featured-content-inner">
15 * Fires before the Twenty Fourteen featured content.
17 * @since Twenty Fourteen 1.0
19 do_action( 'twentyfourteen_featured_posts_before' );
21 $featured_posts = twentyfourteen_get_featured_posts();
22 foreach ( (array) $featured_posts as $order => $post ) :
23 setup_postdata( $post );
25 // Include the featured content template.
26 get_template_part( 'content', 'featured-post' );
30 * Fires after the Twenty Fourteen featured content.
32 * @since Twenty Fourteen 1.0
34 do_action( 'twentyfourteen_featured_posts_after' );
38 </div><!-- .featured-content-inner -->
39 </div><!-- #featured-content .featured-content -->