Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Event category taxonomy template for TwentyTwelve

By: eventsmanager on Sep 18th, 2013  |  syntax: PHP  |  size: 1.12 KB  |  views: 145  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * This template can be used as a boilerplate template for the event category. To use this, follow these steps:
  4.  *
  5.  * Ensure that you have set 'Override with Formats' to 'No' in Events > Settings > Pages > Event Categories
  6.  * Name this file taxonomy-event-categories.php and put it in your theme folder.
  7.  *
  8.  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  9.  *
  10.  * @package WordPress
  11.  * @subpackage Twenty_Twelve
  12.  */
  13.  
  14. get_header();
  15. //get the taxonomy object and convert it to EM_Category for output
  16. $taxonomy = get_queried_object();
  17. $EM_Category = em_get_category($taxonomy->term_id);
  18. ?>
  19.         <div id="primary" class="site-content">
  20.                 <div id="content" role="main">
  21.  
  22.                         <article>
  23.                                 <header class="entry-header">
  24.                                         <h1 class="entry-title"><?php echo $EM_Category->output(get_option('dbem_category_page_title_format')); ?></h1>
  25.                                 </header>
  26.                
  27.                                 <div class="entry-content">
  28.                                         <?php echo $EM_Category->output_single(); ?>
  29.                                 </div><!-- .entry-content -->
  30.                         </article><!-- #post -->
  31.  
  32.                 </div><!-- #content -->
  33.         </div><!-- #primary -->
  34.  
  35. <?php get_sidebar(); ?>
  36. <?php get_footer(); ?>