Advertisement
Guest User

single category template

a guest
Apr 2nd, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="post-inner">
  3. <?php
  4. global $post;
  5. $terms = get_the_terms($post->id, 'event-categories');
  6. if($terms) {
  7. foreach($terms as $em_term) {
  8. $EM_Category = em_get_category($em_term->term_id);
  9. ?>
  10. <h1><?php echo $EM_Category->output('#_CATEGORYNAME'); ?></h1>
  11. <p><?php echo $EM_Category->output('#_CATEGORYNEXTEVENTS
  12. '); ?></p>
  13. <?php
  14. }
  15. }
  16. ?>
  17. </div>
  18. <?php get_sidebar(); ?>
  19. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement