use CPT
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 25 Nov 2014 15:05:50 +0000 (10:05 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 25 Nov 2014 15:10:27 +0000 (10:10 -0500)
front-page.php

index 9949ff7..20755a5 100644 (file)
         </div>
     </div>
     <div class="row" id="space">
-        <div class="text-center small-12 medium-12 medium-centered large-uncentered large-4 columns">
-            <?php
-            $args = array( 'numberposts' => 1, 'category_name' => 'Our Latest Design' );
-            $lastposts = get_posts( $args );
-            foreach($lastposts as $post) : setup_postdata($post); ?>
-                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
-                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>Our Latest Design</h2></a>
-                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
-            <?php endforeach; ?>
-        </div>
-        <div class="text-center small-12 medium-12 medium-centered large-uncentered large-4 columns">
-            <?php
-            $args = array( 'numberposts' => 1, 'category_name' => 'New at Preston Feather' );
-            $lastposts = get_posts( $args );
-            foreach($lastposts as $post) : setup_postdata($post); ?>
-                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
-                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>New at Preston Feather</h2></a>
-                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
-            <?php endforeach; ?>
-        </div>
-        <div class="text-center small-12 medium-12 medium-centerecd large-uncentered large-4 columns">
-            <?php
-            $args = array( 'numberposts' => 1, 'category_name' => 'Seasonal Tips' );
-            $lastposts = get_posts( $args );
-            foreach($lastposts as $post) : setup_postdata($post); ?>
-                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
-                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>Seasonal Tips</h2></a>
-                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
-            <?php endforeach; ?>
-        </div>
+        <?php
+        if (function_exists('glm_blocks_show')) {
+            glm_blocks_show();
+        }
+        ?>
     </div>
     <section class="row" id="print">
         <article id="blog-post" class="divide small-12 medium-8 medium-push-4 columns">