news.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Template Name: News
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="container" class="onecolumn">
  8. <div id="content">
  9. <div class="hide">
  10. <div class="entry-content">
  11. <h3>News</h3>
  12. <img src="<?php bloginfo( 'template_url' ); ?>/images/pastry-1.jpg" width="300"/><div class="separator"><img src="<?php bloginfo( 'template_url' ); ?>/images/separator_sb.png"/>
  13. </div>
  14. <?php query_posts('showposts=3&category_name=news'); ?>
  15. <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
  16. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  17. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  18. <?php the_excerpt();?>
  19. </div><!-- #post-<?php the_ID(); ?> -->
  20. <?php endwhile; endif; ?>
  21. <h3><a href="<?php echo home_url( '/' ); ?>news">More News</a></h3>
  22. </div><!-- .entry-content -->
  23. </div>
  24. <?php query_posts('showposts=21&category_name=news&offset=3'); ?>
  25. <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
  26. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  27. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  28. <?php the_content();?>
  29. </div><!-- #post-<?php the_ID(); ?> -->
  30. <?php endwhile; endif; ?>
  31. </div><!-- #content -->
  32. </div><!-- #container -->
  33. <div class="clear"></div>
  34. <?php get_footer(); ?>