wp/wp-content/themes/twentyfourteen/featured-content.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    17 		 * @since Twenty Fourteen 1.0
    17 		 * @since Twenty Fourteen 1.0
    18 		 */
    18 		 */
    19 		do_action( 'twentyfourteen_featured_posts_before' );
    19 		do_action( 'twentyfourteen_featured_posts_before' );
    20 
    20 
    21 		$featured_posts = twentyfourteen_get_featured_posts();
    21 		$featured_posts = twentyfourteen_get_featured_posts();
    22 		foreach ( (array) $featured_posts as $order => $post ) :
    22 	foreach ( (array) $featured_posts as $order => $post ) :
    23 			setup_postdata( $post );
    23 		setup_postdata( $post );
    24 
    24 
    25 			// Include the featured content template.
    25 		// Include the featured content template.
    26 			get_template_part( 'content', 'featured-post' );
    26 		get_template_part( 'content', 'featured-post' );
    27 		endforeach;
    27 		endforeach;
    28 
    28 
    29 		/**
    29 		/**
    30 		 * Fires after the Twenty Fourteen featured content.
    30 		 * Fires after the Twenty Fourteen featured content.
    31 		 *
    31 		 *