Skip to content

Instantly share code, notes, and snippets.

<?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() ?>
<html>
<head>
<title> Lab 11 - #3 </title>
</head>
<script>
function play () {
play();
var guess = -1; // Set guess to a value outside the range of valid values
for (i=1; i <= 5; i++) {
@Jagst3r15
Jagst3r15 / Recent Posts
Created April 30, 2012 20:11
recent posts
<div id="front-block-2" class="front-block block">
<?php if($recentPosts->have_posts()) : while($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <h1><?php the_title(); ?></h1>
<?php $recentPosts-> the_permalink(); ?>
<?php endwhile; endif; ?>
<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>