'; $featured_posts = billie_get_featured_posts(); foreach ( (array) $featured_posts as $order => $post ) : setup_postdata( $post ); echo '
'; if ( has_post_thumbnail() ) { $background = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'billie-featured-posts-thumb' ); echo '
'; }else{ echo '
'; } echo '
'; the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); echo '
'; echo get_theme_mod('billie_featured_headline', __('Featured','billie')); echo ''; $time_string = '%2$s'; $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $posted_on = $time_string; echo $posted_on; echo '
'; endforeach; wp_reset_postdata(); echo ''; } ?>