Advertisement
n11

post-14294

n11
Jan 30th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. // Modified ecp-page-template.php
  2.  
  3. //Original
  4. //<?php include(tribe_get_current_template()); ?>
  5.  
  6. //Modified to select list view for categories, grid for pre-set default
  7.  
  8. <?php if (
  9. // Array to pull tribe event categories, correct?
  10.     array(
  11.  
  12.     'taxonomy' => 'tribe_events_cat',
  13.  
  14. ) )
  15. // Thus, if its a category, pull template 'list'
  16.     include(tribe_get_current_template('list'));
  17. else
  18. // If not a category, pull default set in options
  19.     include(tribe_get_current_template());
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement