Guest User

archive

a guest
Nov 5th, 2014
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. get_header(); ?>
  2.  
  3. <div id="primary" class="content-area span_16 col clr-margin clr">
  4. <div id="content" class="site-content" role="main">
  5. <h1 class="archive-title"><?php
  6. if ( is_day() ) :
  7. printf( __( 'Daily Archives: %s', 'wpex' ), get_the_date() );
  8. elseif ( is_month() ) :
  9. printf( __( 'Monthly Archives: %s', 'wpex' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'wpex' ) ) );
  10. elseif ( is_year() ) :
  11. printf( __( 'Yearly Archives: %s', 'wpex' ), get_the_date( _x( 'Y', 'yearly archives date format', 'wpex' ) ) );
  12. else :
  13. echo single_term_title();
  14. endif;
  15. ?></h1>
  16. <?php if ( have_posts() ) : ?>
  17. <header class="archive-header">
  18.  
  19. <div class="archive-description"><?php echo term_description(); ?></div>
  20. </header><!-- .archive-header -->
  21.  
  22. <?php /* The loop */ ?>
  23. <?php while ( have_posts() ) : the_post(); ?>
  24. <?php get_template_part( 'content', get_post_format() ); ?>
  25.  
  26. <?php endwhile; ?>
  27.  
  28. <?php wpex_pagination(); ?>
  29.  
  30. <?php else : ?>
  31. <?php get_template_part( 'content', 'none' ); ?>
  32. <?php endif; ?>
  33.  
  34. </div><!-- #content -->
  35. </div><!-- #primary -->
  36.  
  37. <?php get_sidebar(); ?>
  38. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment