//show the category one dynamic_sidebar($tax_meta_sidebar); } else { //load the blog one or default td_util::show_sidebar('home'); } } else { //load the blog one or default td_util::show_sidebar('home'); } } elseif (is_home()) { // it's the blog index template (home.php but I think we go with index.php) td_util::show_sidebar('home'); } elseif (is_page()) { // custom sidebars for pages td_util::show_sidebar('page'); } elseif (is_day() or is_month() or is_year()) { //custom sidebar for archive pages td_util::show_sidebar('archive'); } elseif (is_author()) { //custom sidebar for author pages td_util::show_sidebar('author'); } elseif (is_tag()) { td_util::show_sidebar('tag'); } elseif (is_search()) { td_util::show_sidebar('search'); } else { //show default dynamic_sidebar(TD_THEME_NAME . ' default'); } }