Advertisement
Guest User

Taxonomy-genre Wordpress template

a guest
Sep 16th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php if (have_posts()) : ?>
  3. <div id="post" <?php post_class(); ?>>
  4. <h1>What People Say About Lee's Work</h1>
  5.  
  6. <?php
  7.  
  8. $taxonomy = 'genre';
  9. $orderby = 'name';
  10. $title = '';
  11.  
  12. $args = array(
  13. 'taxonomy' => $taxonomy,
  14. 'orderby' => $orderby,
  15. 'title_li' => $title
  16. );
  17. ?>
  18.  
  19. <ul class="button">
  20. <?php wp_list_categories( $args ); ?>
  21. </ul>
  22.  
  23.  
  24. <?php while (have_posts()) : the_post(); ?>
  25.  
  26. <?php the_content(); ?>
  27. <cite><?php the_title();?></cite>
  28. <hr>
  29.  
  30. <?php endwhile; else: ?>
  31.  
  32. <?php endif; ?>
  33. </div>
  34. </div>
  35. <?php get_sidebar(); ?>
  36. </div><!-- end of main div -->
  37. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement