Advertisement
Digitalraindrops

ari-loop-category.php

Sep 16th, 2011
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.30 KB | None | 0 0
  1. <?php /* If there are no posts to display, such as an empty archive page */ ?>
  2. <?php if ( ! have_posts() ) : ?>
  3.         <h1><?php _e( 'Not Found', 'ari' ); ?></h1>
  4.         <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'ari' ); ?></p>
  5.  
  6. <?php endif; ?>
  7.  
  8.  
  9. <?php /* Start the Loop. */ ?>
  10. <?php while ( have_posts() ) : the_post(); ?>
  11.  
  12. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.  
  14.     <?php if (is_sticky()) echo __( '<h3 class="sticky-label">Featured</h3>', 'ari' ); ?>
  15.     <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'ari' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  16.    
  17.             <?php if ( has_post_thumbnail() ): ?>
  18.                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
  19.             <?php endif; ?>
  20.  
  21.             <?php the_content( __( 'Continue Reading &rarr;', 'ari' ) ); ?>
  22.             <div class="clear"></div>
  23.            
  24.             <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'ari' ), 'after' => '</div>' ) ); ?>
  25.            
  26.             <p class="meta"><span><?php the_time('d. F Y') ?> <?php _e( 'by', 'ari' ); ?> <?php the_author() ?></span><br/>            
  27.  
  28.                 <?php if ( count( get_the_category() ) ) : ?>
  29.                     <?php printf( __( 'Categories: %2$s', 'ari' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
  30.                     |
  31.                 <?php endif; ?>
  32.                 <?php
  33.                     $tags_list = get_the_tag_list( '', ', ' );
  34.                     if ( $tags_list ):
  35.                 ?>
  36.                     <?php printf( __( 'Tags: %2$s', 'ari' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
  37.                     |
  38.                 <?php endif; ?>
  39.                
  40.                 <?php comments_popup_link( __( 'Leave a comment', 'ari' ), __( '1 comment', 'ari' ), __( '% comments', 'ari' ) ); ?>
  41.                 <?php edit_post_link( __( 'Edit &rarr;', 'ari' ), '| ', '' ); ?></p>
  42.     </div>
  43.     <!--end Post-->
  44.  
  45.         <?php comments_template( '', true ); ?>
  46.  
  47. <?php endwhile; // End the loop. ?>
  48.  
  49.  
  50. <?php /* Display navigation to next/previous pages when applicable */ ?>
  51. <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  52.                 <p class="previous"><?php next_posts_link( __( '&larr; Older posts', 'ari' ) ); ?></p>
  53.                 <p class="next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'ari' ) ); ?></p>
  54. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement