Advertisement
pratikshrestha

Archive for Adventurous Pro

Jul 17th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying Archive pages.
  4.  *
  5.  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  6.  *
  7.  * @package Catch Themes
  8.  * @subpackage Adventurous
  9.  * @since Adventurous 1.0
  10.  */
  11.  
  12. get_header(); ?>
  13.  
  14.         <section id="primary" class="content-area">
  15.             <div id="content" class="site-content" role="main">
  16.  
  17.             <?php if ( have_posts() ) : ?>
  18.  
  19.                 <header class="page-header">
  20.                     <h1 class="page-title">
  21.                         <?php
  22.                             the_archive_title();
  23.                         ?>
  24.                     </h1>
  25.                     <?php
  26.                         the_archive_description();
  27.                     ?>
  28.                 </header><!-- .page-header -->
  29.  
  30.                 <?php adventurous_content_nav( 'nav-above' ); ?>
  31.  
  32.                 <?php /* Start the Loop */ ?>
  33.                 <?php while ( have_posts() ) : the_post(); ?>
  34.  
  35.                     <?php
  36.                         /* Include the Post-Format-specific template for the content.
  37.                          * If you want to overload this in a child theme then include a file
  38.                          * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  39.                          */
  40.                         get_template_part( 'content', get_post_format() );
  41.                     ?>
  42.  
  43.                 <?php endwhile; ?>
  44.  
  45.                 <?php adventurous_content_nav( 'nav-below' ); ?>
  46.  
  47.             <?php else : ?>
  48.  
  49.                 <?php get_template_part( 'no-results', 'archive' ); ?>
  50.  
  51.             <?php endif; ?>
  52.  
  53.             </div><!-- #content .site-content -->
  54.         </section><!-- #primary .content-area -->
  55.  
  56. <?php get_sidebar(); ?>
  57. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement