Skip to content

Instantly share code, notes, and snippets.

@Jagst3r15
Created May 9, 2012 02:21
Show Gist options
  • Save Jagst3r15/2641281 to your computer and use it in GitHub Desktop.
Save Jagst3r15/2641281 to your computer and use it in GitHub Desktop.
<?php
/*
Template Name: Front Page
.
Take a look at the functions.php for this theme to see how the random content is included.
.
*/
?>
<?php get_header() ?>
<div id="container" class="feature">
<div id="content">
<div id="sub-feature">
<div id="front-block-1" class="front-block block">
<?php if ( function_exists('wp_tag_cloud') ) : ?>
<ol>
<h3>Popular Tags</h3>
<ul>
<?php wp_tag_cloud('smallest=8&largest=20'); ?>
</ul>
</ol>
<?php endif; ?>
</div><!-- #front-block-1.front-block .block-->
<div id="front-block-2" class="front-block block">
<ul id="recent-items">
<?php
$recentPosts = new WP_Query(array('posts_per_page' => 1));
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<li><?php the_post_thumbnail(thumbnail); ?><?php the_excerpt(); ?></li>
<?php endwhile; ?>
</ul>
</div><!-- #front-block-2 .front-block .block-->
</div><!-- #sub-feature -->
</div><!-- #content -->
</div><!-- #container .feature -->
<?php get_footer() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment