category.php 922 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The template used to display Category Archive pages
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty Ten
  7. * @since 3.0.0
  8. */
  9. ?>
  10. <?php get_header(); ?>
  11. <div id="container">
  12. <div id="content">
  13. <h1 class="page-title"><?php
  14. printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
  15. ?></h1>
  16. <?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
  17. <?php
  18. /* Run the loop for the category page to output the posts.
  19. * If you want to overload this in a child theme then include a file
  20. * called loop-category.php and that will be used instead.
  21. */
  22. get_template_part( 'loop', 'category' );
  23. ?>
  24. </div><!-- #content -->
  25. </div><!-- #container -->
  26. <?php get_sidebar(); ?>
  27. <?php get_footer(); ?>