SHARE
TWEET

single category template

a guest Apr 2nd, 2013 5 Never
  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(); ?>
RAW Paste Data
Top