<section id="feature-section" class="feature-area home-feature">
    <div class="tpbrd"></div>
    <div class="bmbrd"></div>
    <div class="container">
        <div class="ourtbx"> 
            <div class="row m-0">
                <?php for($p=1; $p<11; $p++) { ?>
                    <?php if( get_theme_mod('feature'.$p,false)) { ?>
                    <?php $querycolumns = new WP_query('page_id='.get_theme_mod('feature'.$p,true)); ?>
                    <?php while( $querycolumns->have_posts() ) : $querycolumns->the_post(); 
                ?>
                <div class="box-space">
                    <div class="threebox box<?php echo esc_attr( $p ) ?> <?php if($p % 3 == 0) { echo "last_column"; } ?>">  
                        <div class="single-feature">
                            <i class="<?php echo esc_attr( get_theme_mod( 'featureicon' . $p, 'fa fa-camera' ) ); ?>" aria-hidden="true"></i>
                            
                            <div class="sercontbx">
                                <a href="<?php echo esc_url( get_permalink() ); ?>">
                                    <h3 class="title"><?php the_title_attribute(); ?></h3>
                                </a>
                            </div>    		
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <?php endwhile;
            wp_reset_postdata(); ?>
            <?php } } ?>
            <div class="clear"></div> 
            </div>
        </div> 
	</div>
</section>
