Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

old 'template-home-ORIGINAL.php' code

By: johndove523 on Jun 15th, 2012  |  syntax: None  |  size: 0.84 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.         /*
  4.                 Template Name: Homepage
  5.         */
  6.  
  7. ?>
  8.  
  9. <?php get_header(); ?>
  10.  
  11. <section class="row">
  12.  
  13.    <div id="main_events_wrap"> 
  14.         <?php query_posts('showposts=3&cat=4'); ?>    <!-- show 3 posts, category ID comes from where? -->
  15.         <?php while (have_posts()) : the_post(); ?>   <!-- ??? -->
  16.         <div id="event1" class="main_events">
  17.         <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( array(287,200) ); ?></a><!-- ??? -->
  18.         <h3 class="event-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>   <!-- ??? -->
  19.         </div><!--end 'main_events'-->
  20.         <?php endwhile; ?>
  21.     </div><!--end 'main_events_wrap'-->
  22.        
  23.        
  24.         <div class="eightcol">
  25.         <?php query_posts('cat=5'); ?>
  26.         <?php while (have_posts()) : the_post(); ?>
  27.         <h2><?php the_title(); ?></h2>
  28.         <?php the_content(); ?>
  29.         <?php endwhile; ?>
clone this paste RAW Paste Data