SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /** | |
| 3 | * @package WordPress | |
| 4 | * @subpackage Coraline | |
| 5 | * @since Coraline 1.0 | |
| 6 | */ | |
| 7 | ?> | |
| 8 | ||
| 9 | <?php /* Display navigation to next/previous pages when applicable */ ?> | |
| 10 | <?php if ( $wp_query->max_num_pages > 1 ) : ?> | |
| 11 | <div id="nav-above" class="navigation"> | |
| 12 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'coraline' ) ); ?></div> | |
| 13 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> | |
| 14 | </div><!-- #nav-above --> | |
| 15 | <?php endif; ?> | |
| 16 | ||
| 17 | <?php /* If there are no posts to display, such as an empty archive page */ ?> | |
| 18 | <?php if ( ! have_posts() ) : ?> | |
| 19 | <div id="post-0" class="post error404 not-found"> | |
| 20 | <h1 class="entry-title"><?php _e( 'Not Found', 'coraline' ); ?></h1> | |
| 21 | <div class="entry-content"> | |
| 22 | <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'coraline' ); ?></p> | |
| 23 | <?php get_search_form(); ?> | |
| 24 | </div><!-- .entry-content --> | |
| 25 | </div><!-- #post-0 --> | |
| 26 | <?php endif; ?> | |
| 27 | ||
| 28 | <?php | |
| 29 | // Start the Loop. | |
| 30 | while ( have_posts() ) : the_post(); ?> | |
| 31 | ||
| 32 | <?php /* How to display just titles of category posts. */ ?> | |
| 33 | ||
| 34 | - | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 34 | + | <li><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></li> |
| 35 | - | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
| 35 | + | |
| 36 | - | </div> |
| 36 | + | |
| 37 | ||
| 38 | ||
| 39 | <?php /* Display navigation to next/previous pages when applicable */ ?> | |
| 40 | <?php if ( $wp_query->max_num_pages > 1 ) : ?> | |
| 41 | <div id="nav-below" class="navigation"> | |
| 42 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'coraline' ) ); ?></div> | |
| 43 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> | |
| 44 | </div><!-- #nav-below --> | |
| 45 | <?php endif; ?> |