aeboi80

WP Tag Archive Template

Dec 1st, 2011
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.52 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template used to display Tag Archive pages
  4. *
  5. * @package WordPress
  6. * @subpackage boxpress
  7. */
  8.  
  9. get_header(); ?>
  10.  
  11. <div id="featured-banner" class="left">
  12.                            
  13.             <img src="<?php bloginfo('template_directory'); ?>/images/funtional.jpg" alt="banner image" width="230" height="92" />
  14.            
  15.  
  16.                
  17.             </div><!--featured-banner-->
  18.         <div id="page-banner" class="left">
  19.             <h1><?php printf( __( '%s', 'boxpress' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
  20.             <?php /*if(is_category())
  21.                 {
  22.                     $cat = get_query_var('cat');
  23.                     $yourcat = get_category($cat);
  24.                     echo $yourcat->name;
  25.                 }*/
  26.             ?>
  27.             </h1>
  28.         </div><!--page-banner-->
  29.         <div class="clear"></div>
  30.        
  31. <?php get_sidebar(); ?>
  32.         <section id="primary" class="left" style="width:450px;margin:40px 0 0 50px;">
  33.             <div id="content" role="main">
  34.  
  35.                 <?php the_post(); ?>
  36.  
  37.                 <header class="page-header">
  38.                     <h1 class="page-title"><?php
  39.                         //printf( __( 'Tag Archives: %s', 'boxpress' ), '<span>' . single_tag_title( '', false ) . '</span>' );
  40.                     ?></h1>
  41.                 </header>
  42.  
  43.                 <?php rewind_posts(); ?>
  44.                
  45.  
  46.                 <?php /* Display navigation to next/previous pages when applicable */ ?>
  47.                 <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  48.                     <div class="pagination">
  49.                         <?php imagebox_pagination(); ?>
  50.                     </div>
  51.                 <?php endif; ?>
  52.                
  53.            
  54.                 <?php /* Start the Loop */ ?>
  55.                 <?php while ( have_posts() ) : the_post(); ?>
  56.                    
  57.                     <?php //get_template_part( 'content', the_post_thumbnail(), get_post_format() ); ?>
  58.                    
  59.                     <!-- Begin post/product layout in loop -->
  60.                    
  61.                     <div class="tag-post-wrapper">
  62.                         <div class="tag-post-thumbnail left">
  63.                             <a href="<?php the_permalink();?>"><?php the_post_thumbnail();?></a>
  64.                         </div><!--/tag-post-thumbnail-->
  65.                        
  66.                         <div class="tag-post-title left">
  67.                             <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  68.                         </div><!--/tag-post-title-->
  69.                         <div class="clear"></div>
  70.                     </div><!--/tag-post-wrapper-->
  71.                    
  72.                     <!-- End post/product layout in loop -->
  73.  
  74.                 <?php endwhile; ?>
  75.                
  76.                 <?php /* Display navigation to next/previous pages when applicable */ ?>
  77.                 <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  78.                     <div class="pagination">
  79.                         <?php imagebox_pagination(); ?>
  80.                     </div>
  81.                 <?php endif; ?>            
  82.  
  83.             </div><!-- #content -->
  84.         </section><!-- #primary -->
  85.  
  86.  
  87. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment