Advertisement
specht

loop-page.php

Mar 8th, 2011
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2. /**
  3. * The loop that displays a page.
  4. *
  5. * The loop displays the posts and the post content. See
  6. * http://codex.wordpress.org/The_Loop to understand it and
  7. * http://codex.wordpress.org/Template_Tags to understand
  8. * the tags used in it.
  9. *
  10. * This can be overridden in child themes with loop-page.php.
  11. *
  12. * @package WordPress
  13. * @subpackage Twenty_Ten
  14. * @since Twenty Ten 1.2
  15. */
  16. ?>
  17.  
  18. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21. <?php if ( is_front_page() ) { ?>
  22. <h2 class="entry-title"><?php the_title(); ?></h2>
  23.  
  24.  
  25.  
  26. <?php } else { ?>
  27. <h1 class="entry-title"><?php the_title(); ?></h1>
  28. <?php } ?>
  29.  
  30. <div class="entry-content">
  31. <?php the_content(); ?>
  32. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  33. <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  34. </div><!-- .entry-content -->
  35. </div><!-- #post-## -->
  36.  
  37. <?php comments_template( '', true ); ?>
  38.  
  39. <?php endwhile; // end of the loop. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement