
Correct 'template-home.php' code
By:
johndove523 on
Jun 15th, 2012 | syntax:
None | size: 1.03 KB | hits: 23 | expires: Never
<?php
/*
Template Name: Homepage
*/
?>
<?php get_header(); ?>
<section class="row">
<div id="featured">
<!--MAIN EVENTS-->
<?php query_posts('showposts=3&cat=4'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="ic_container mainevent">
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( array(287,200) ); ?></a>
<div class="ic_caption">
<div class="excerptcontent"><?php the_excerpt() ?></div>
</div><!--end 'ic_caption'-->
<h3 class="main_event"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h3>
</div><!--end 'main event 1'-->
<?php endwhile; ?>
</div><!--end MAIN EVENTS - 'featured'-->
<div class="eightcol">
<?php query_posts('cat=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="home-page-article">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>