Advertisement
Guest User

Fixes for tag.php template

a guest
Sep 28th, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template for Category Pages
  4.  *
  5.  * @package             WordPress
  6.  * @subpackage  Sprachkonstrukt2 Theme
  7.  * @author      Ruben Deyhle <ruben@sprachkonstrukt.de>
  8.  * @url                 http://sprachkonstrukt2.deyhle-webdesign.com
  9.  */
  10.  
  11. get_header();
  12.  
  13. if ( have_posts() )
  14. /*      the_post(); */
  15. ?>
  16.                                 <h1><?php
  17.                                         printf( __( 'Tag Archives: %s', 'sprachkonstrukt' ), '' . single_tag_title( '', false ) . '' ); ?></h1>
  18.                                 <?php
  19.                  $tag_description = strip_tags(tag_description());
  20.                                                 if ( ! empty( $tag_description ) )
  21.                                                         echo  "<p>Description: $tag_description </p>"  ;                                        
  22.  
  23. /*
  24.                                         $category_description = category_description();
  25.                                         if ( ! empty( $category_description ) )
  26.                                                 echo '' . $category_description . '';
  27. */
  28.  
  29.                                 get_template_part( 'loop', 'tag' );
  30.                                 ?>
  31.  
  32. <?php
  33.  
  34. /* get_template_part( 'loop', 'archive' ); */
  35.  
  36. get_footer(); ?>
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement