remove the extra feature image output
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 3 Mar 2016 21:16:11 +0000 (16:16 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 3 Mar 2016 21:16:11 +0000 (16:16 -0500)
landing-page.php

index 8f0bdb4..c399b87 100644 (file)
@@ -20,25 +20,6 @@ Template Name: Landing Page
         </div>
         <div class="row">
             <ul id="quick-sub_pages" class="small-block-grid-1 medium-block-grid-3">
-              <?php global $dyanmic_featured_image; ?>
-               <?php global $post;
-                $args = array( 'post_parent' =>$post->ID, 'post_type' => 'page','orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => -1, 'post_status' => 'any');
-                $children = get_children($args);
-                foreach($children as $child){ ?>
-                  <?php $images =  $dynamic_featured_image->get_featured_images($child->ID); ?>
-                 <?php foreach($images as $image){
-                    $imageSrc =  $image['full'];
-                  }?>
-                     <li class="small-text-center medium-text-left landing-item">
-                        <a href="<?php echo get_permalink($child->ID); ?>">
-                            <div class="glm-img-wrap">
-                                <img src="<?php echo $imageSrc; ?>" alt="featured-image">
-                            </div>
-                            <h5><?php echo $child->post_title ?></h5>
-                        </a>
-                    </li>
-                     <?php $imageSrc = null; ?>
-                <?php } ?>
                 <?php if(function_exists('fetch_all_glm_blocks')):?>
                 <?php $blocks = fetch_all_glm_blocks(7591);?>
                     <?php foreach ($blocks as $block):?>