Advertisement
Guest User

Untitled

a guest
Apr 18th, 2012
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Front Page
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <div id="container">
  10. <div id="content" role="main">
  11.  
  12. <?php
  13. /* Run the loop to output the page.
  14. * If you want to overload this in a child theme then include a file
  15. * called loop-page.php and that will be used instead.
  16. */
  17. get_template_part( 'loop', 'page' );
  18. ?>
  19.  
  20.  
  21. <div id="frontpagepostpull">
  22. <?php $temp_query = $wp_query; ?>
  23. <?php query_posts('showposts=1'); ?>
  24. <?php while (have_posts()) : the_post(); ?>
  25. <div class="post" id="post-<?php the_ID(); ?>">
  26. <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
  27. <?php the_post_thumbnail('front-page-post-thumbnail'); ?> <?php the_excerpt(); ?>
  28. </div>
  29. <?php endwhile; ?>
  30. </div>
  31.  
  32.  
  33.  
  34. </div><!-- #content -->
  35. </div><!-- #container -->
  36.  
  37. <?php get_sidebar(); ?>
  38. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement