Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Modified ecp-page-template.php
- //Original
- //<?php include(tribe_get_current_template()); ?>
- //Modified to select list view for categories, grid for pre-set default
- <?php if (
- // Array to pull tribe event categories, correct?
- array(
- 'taxonomy' => 'tribe_events_cat',
- ) )
- // Thus, if its a category, pull template 'list'
- include(tribe_get_current_template('list'));
- else
- // If not a category, pull default set in options
- include(tribe_get_current_template());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement