IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
241 | 241 | |
242 | 242 | if ( ! empty( $term->slug ) ) { |
243 | 243 | $taxonomy = $term->taxonomy; |
| 244 | |
| 245 | $taxonomy_object = get_taxonomy( $taxonomy ); |
| 246 | |
244 | 247 | $templates[] = "taxonomy-$taxonomy-{$term->slug}.php"; |
245 | 248 | $templates[] = "taxonomy-$taxonomy.php"; |
| 249 | |
| 250 | foreach($taxonomy_object->object_type AS $post_type){ |
| 251 | $templates[] = "archive-$post_type.php"; |
| 252 | } |
246 | 253 | } |
247 | 254 | $templates[] = 'taxonomy.php'; |
248 | 255 | |