Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Homepage
- */
- ?>
- <?php get_header(); ?>
- <section class="row">
- <div id="main_events_wrap">
- <?php query_posts('showposts=3&cat=4'); ?> <!-- show 3 posts, category ID comes from where? -->
- <?php while (have_posts()) : the_post(); ?> <!-- ??? -->
- <div id="event1" class="main_events">
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( array(287,200) ); ?></a><!-- ??? -->
- <h3 class="event-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <!-- ??? -->
- </div><!--end 'main_events'-->
- <?php endwhile; ?>
- </div><!--end 'main_events_wrap'-->
- <div class="eightcol">
- <?php query_posts('cat=5'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <h2><?php the_title(); ?></h2>
- <?php the_content(); ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement