taxonomy-custom_cat.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. <h1 class="archive_title h2"><span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?></h1>
  17. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  18. <article id="post-<?php the_ID(); ?>" class="clear">
  19. <header>
  20. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  21. <p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php echo get_the_term_list( get_the_ID(), 'custom_cat', "" ) ?>.</p>
  22. </header> <!-- end article header -->
  23. <section class="post_content">
  24. <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  25. <?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
  26. </section> <!-- end article section -->
  27. <footer>
  28. </footer> <!-- end article footer -->
  29. </article> <!-- end article -->
  30. <?php endwhile; ?>
  31. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  32. <?php page_navi(); // use the page navi function ?>
  33. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  34. <nav class="wp-prev-next">
  35. <ul class="clear">
  36. <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
  37. <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
  38. </ul>
  39. </nav>
  40. <?php } ?>
  41. <?php else : ?>
  42. <article id="post-not-found">
  43. <header>
  44. <h1>No Posts Yet</h1>
  45. </header>
  46. <section class="post_content">
  47. <p>Sorry, but the requested resource was not found on this site.</p>
  48. </section>
  49. <footer>
  50. </footer>
  51. </article>
  52. <?php endif; ?>
  53. </div> <!-- end #main -->
  54. <?php get_sidebar(); // sidebar 1 ?>
  55. </div> <!-- end #content -->
  56. <?php get_footer(); ?>