Advertisement
Guest User

Current Code

a guest
May 20th, 2012
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package WordPress
  12. * @subpackage Twenty_Ten
  13. * @since Twenty Ten 1.0
  14. */
  15.  
  16. get_header(); ?>
  17.  
  18.  
  19. <div id="container">
  20. <div id="content" role="main">
  21. <div align="center"><a title="Holding Back a Rising Sea" href="http://www.technologybloggers.org/science/holding-back-a-rising-sea/"><img width="428" height="60" alt="Holding Back a Rising Sea - Featured Article" src="http://www.technologybloggers.org/images/Featured-Article/Holding-Back-a-Rising-Sea.jpg"/></a></div>
  22. <?php
  23. if( is_home() && !is_paged() ) :
  24. global $query_string;
  25. query_posts( $query_string . '&posts_per_page=3' );
  26. endif;
  27. ?>
  28.  
  29. <?php
  30. /* Run the loop to output the posts.
  31. * If you want to overload this in a child theme then include a file
  32. * called loop-index.php and that will be used instead.
  33. */
  34. get_template_part( 'loop', 'index' );
  35. ?>
  36. </div><!-- #content -->
  37. </div><!-- #container -->
  38.  
  39. <?php get_sidebar(); ?>
  40. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement