Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

FM – FM4 – Page – Home – Hero Main Loop

The Hero area on the home page loop

// WP_Query arguments
$args = array (
);

// The Query
$query_home_hero = new WP_Query( $args );

// The Loop
if ( $query_home_hero->have_posts() ) {
	while ( $query_home_hero->have_posts() ) {
		$query_home_hero->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();