null, 'general' => null, 'specific' => null ); $id = $wp_query->get_queried_object_id(); if ( is_front_page() ) $pd_hierarchy_context['general'] = 'home'; else if ( is_singular() ) { $pd_hierarchy_context['abstract'] = 'singular'; if ( is_attachment() ) { $pd_hierarchy_context['general'] = 'attachment'; $pd_hierarchy_context['specific'] = 'attachment-'. $id; } else if ( is_single() ) { $pd_hierarchy_context['general'] = 'single'; $pd_hierarchy_context['specific'] = 'single-'. $id; } else if ( is_page() ) { $pd_hierarchy_context['general'] = 'page'; $pd_hierarchy_context['specific'] = 'page-'. $id; } } else if ( is_archive() ) { $pd_hierarchy_context['abstract'] = 'archive'; if ( is_category() ) { $pd_hierarchy_context['general'] = 'category'; $pd_hierarchy_context['specific'] = 'category-'. $id; } else if ( is_tag() ) { $pd_hierarchy_context['general'] = 'tag'; $pd_hierarchy_context['specific'] = 'tag-'. $id; } else if ( is_date() ) { $pd_hierarchy_context['general'] = 'date'; if ( is_month() ) $pd_hierarchy_context['specific'] = 'month-'. $id; else if ( is_year() ) $pd_hierarchy_context['specific'] = 'year-'. $id; else if ( is_day() ) $pd_hierarchy_context['specific'] = 'day-'. $id; else if ( is_time() ) $pd_hierarchy_context['specific'] = 'time-' . $id; } else if ( is_author() ) { $pd_hierarchy_context['general'] = 'author'; $pd_hierarchy_context['specific'] = 'author-'. $id; } else if ( is_tax() ) { $pd_hierarchy_context['general'] = 'tax'; $pd_hierarchy_context['specific'] = 'tax-'. $id; } } else if ( is_search() ) $pd_hierarchy_context['general'] = 'search'; else if ( is_404() ) $pd_hierarchy_context['general'] = 'error404'; return $pd_hierarchy_context; } } ?>