Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Archives
  4. */
  5.  
  6. get_header(); ?>
  7.  
  8. <div id="main-content" class="main-content">
  9.  
  10. <?php
  11. if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
  12. // Include the featured content template.
  13. get_template_part( 'featured-content' );
  14. }
  15. ?>
  16. <div id="primary" class="content-area">
  17. <div id="content" class="site-content" role="main">
  18.  
  19. <?php
  20. // Start the Loop.
  21. while ( have_posts() ) : the_post();
  22.  
  23. ?>
  24.  
  25. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  26. <?php
  27. // Page thumbnail and title.
  28. twentyfourteen_post_thumbnail();
  29. the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
  30. ?>
  31.  
  32. <div class="entry-content">
  33. <?php the_content(); ?>
  34.  
  35. <?php get_search_form(); ?>
  36.  
  37. <h2>Archives by Month:</h2>
  38. <ul>
  39. <?php wp_get_archives('type=monthly'); ?>
  40. </ul>
  41.  
  42. <h2>Archives by Subject:</h2>
  43. <ul>
  44. <?php wp_list_categories(); ?>
  45. </ul>
  46.  
  47. <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
  48.  
  49. </div><!-- .entry-content -->
  50. </article><!-- #post-## -->
  51.  
  52. <?php
  53.  
  54. // If comments are open or we have at least one comment, load up the comment template.
  55. if ( comments_open() || get_comments_number() ) {
  56. comments_template();
  57. }
  58. endwhile;
  59. ?>
  60.  
  61.  
  62. </div><!-- #content -->
  63. </div><!-- #primary -->
  64. <?php get_sidebar( 'content' ); ?>
  65. </div><!-- #main-content -->
  66.  
  67. <?php
  68. get_sidebar();
  69. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement