Changeset 13885 for trunk/wp-content/themes/twentyten/loop.php
- Timestamp:
- 03/29/2010 10:03:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop.php
r13830 r13885 1 <?php 2 /** 3 * The loop that displays posts 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 * @package WordPress 11 * @subpackage Twenty Ten 12 * @since 3.0.0 13 */ 14 ?> 15 16 <?php /* Display navigation to next/previous pages when applicable */ ?> 1 17 <?php if ( $wp_query->max_num_pages > 1 ) : ?> 2 18 <div id="nav-above" class="navigation"> … … 6 22 <?php endif; ?> 7 23 24 <?php /* If there are no posts to display, such as an empty archive page */ ?> 8 25 <?php if ( ! have_posts() ) : ?> 9 26 <div id="post-0" class="post error404 not-found"> … … 16 33 <?php endif; ?> 17 34 35 <?php /* Start the Loop */ ?> 18 36 <?php while ( have_posts() ) : the_post(); ?> 37 38 <?php /* How to Display posts in the Gallery Category */ ?> 19 39 <?php if ( in_category( 'Gallery' ) ) : ?> 20 40 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 63 83 </div> 64 84 65 85 <?php /* How to display posts in the asides category */ ?> 66 86 <?php elseif ( in_category( 'asides' ) ) : ?> 67 87 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 93 113 </div><!-- #post-<?php the_ID(); ?> --> 94 114 95 115 <?php /* How to display all other posts */ ?> 96 116 <?php else : ?> 97 117 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 140 160 <?php endwhile; ?> 141 161 162 <?php /* Display navigation to next/previous pages when applicable */ ?> 142 163 <?php if ( $wp_query->max_num_pages > 1 ) : ?> 143 164 <div id="nav-below" class="navigation">
Note: See TracChangeset
for help on using the changeset viewer.