term_id; $my_cat = get_category($podcat_id); $child_cat = get_term_children($podcat_id,'category'); if(get_field('shablon','category_'.$podcat_id) == 'blog'){ include(TEMPLATEPATH.'/templates/category-blog.php'); } else if($child_cat){ include(TEMPLATEPATH.'/templates/category-child.php'); } else{ include(TEMPLATEPATH.'/templates/catalog.php'); } ?>