Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wp_query, $post;
- $current_term = $wp_query->get_queried_object();
- $blog_cat = get_blog_sub_cats_str($type='array');
- $category_id = (!file_exists(TEMPLATEPATH . '/library/includes/event_listing.'.(int)$_REQUEST['cat'].'.php')) ? '' : '.'.$category_id;
- if($current_term->taxonomy=='eventcategory')
- {
- require_once (TEMPLATEPATH . "/library/includes/event_listing{$category_id}.php");
- }elseif(in_array($current_term->term_id,$blog_cat) || is_day() || is_month() || is_year()) //blog category
- {
- require_once (TEMPLATEPATH . "/library/includes/blog_listing{$category_id}.php");
- }else
- {
- require_once (TEMPLATEPATH . "/library/includes/place_listing{$category_id}.php");
- }
- ?>
Add Comment
Please, Sign In to add comment