File: /home/awaldron/_domains/waldroninteractive.com/wp-content/themes/whoiam/home_section.php
<?php
$args=array(
'post_type' => 'page',
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => '-1'
);
$main_query = new WP_Query($args);
if( have_posts() ) :
while ($main_query->have_posts()) : $main_query->the_post();
$post_id = get_the_ID();
?>
<?php if (get_post_meta($post_id, "rnr_assign_type", true) == "home-section") { ?>
<header class="main-header" >
<?php if ( has_post_thumbnail()) {
if (empty($slider_meta)) {
$att=get_post_thumbnail_id();
$image_src = wp_get_attachment_image_src( $att, 'full' );
$image_src = $image_src[0]; ?>
<div class="content-table header-content-fixed " style="background-image:url(<?php echo $image_src; ?>)">
<?php } ?>
<?php } ?>
<?php the_content(); ?>
</div>
</header>
<?php
?>
<?php
}
endwhile;
endif; ?>