taxonomy-custom_cat.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /*
  3. This is the custom post type taxonomy template.
  4. If you edit the custom taxonomy name, you've got
  5. to change the name of this template to
  6. reflect that name change.
  7. i.e. if your custom taxonomy is called
  8. register_taxonomy( 'shoes',
  9. then your single template should be
  10. taxonomy-shoes.php
  11. */
  12. ?>
  13. <?php get_header(); ?>
  14. <div id="content" class="clear">
  15. <div id="main" class="col620 clear" role="main">
  16. <?php if (is_category()) { ?>
  17. <h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
  18. <?php } elseif (is_tag()) { ?>
  19. <h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
  20. <?php } elseif (is_author()) { ?>
  21. <h1 class="archive_title h2"><span>Posts By:</span> <?php get_the_author_meta('display_name'); ?></h1>
  22. <?php } elseif (is_day()) { ?>
  23. <h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
  24. <?php } elseif (is_month()) { ?>
  25. <h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
  26. <?php } elseif (is_year()) { ?>
  27. <h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
  28. <?php } ?>
  29. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  30. <article id="post-<?php the_ID(); ?>" class="clear">
  31. <header>
  32. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  33. <p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
  34. </header> <!-- end article header -->
  35. <section class="post_content">
  36. <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  37. <?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
  38. </section> <!-- end article section -->
  39. <footer>
  40. </footer> <!-- end article footer -->
  41. </article> <!-- end article -->
  42. <?php endwhile; ?>
  43. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  44. <?php page_navi(); // use the page navi function ?>
  45. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  46. <nav class="wp-prev-next">
  47. <ul class="clear">
  48. <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
  49. <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
  50. </ul>
  51. </nav>
  52. <?php } ?>
  53. <?php else : ?>
  54. <article id="post-not-found">
  55. <header>
  56. <h1>No Posts Yet</h1>
  57. </header>
  58. <section class="post_content">
  59. <p>Sorry, but the requested resource was not found on this site.</p>
  60. </section>
  61. <footer>
  62. </footer>
  63. </article>
  64. <?php endif; ?>
  65. </div> <!-- end #main -->
  66. <?php get_sidebar(); // sidebar 1 ?>
  67. </div> <!-- end #content -->
  68. <?php get_footer(); ?>