|
@@ 145-153 (lines=9) @@
|
| 142 |
|
|
| 143 |
|
// Category |
| 144 |
|
|
| 145 |
|
elseif ( $type == 'category' ): |
| 146 |
|
|
| 147 |
|
$category = get_queried_object(); |
| 148 |
|
|
| 149 |
|
if ( ! empty( $category->slug ) ) { |
| 150 |
|
$templates[] = "category-{$category->slug}"; |
| 151 |
|
$templates[] = "category-{$category->term_id}"; |
| 152 |
|
} |
| 153 |
|
$templates[] = 'category'; |
| 154 |
|
|
| 155 |
|
|
| 156 |
|
// Attachment |
|
@@ 186-194 (lines=9) @@
|
| 183 |
|
|
| 184 |
|
// Tag |
| 185 |
|
|
| 186 |
|
elseif ( $type == 'tag' ): |
| 187 |
|
|
| 188 |
|
$tag = get_queried_object(); |
| 189 |
|
|
| 190 |
|
if ( ! empty( $tag->slug ) ) { |
| 191 |
|
$templates[] = "tag-{$tag->slug}"; |
| 192 |
|
$templates[] = "tag-{$tag->term_id}"; |
| 193 |
|
} |
| 194 |
|
$templates[] = 'tag'; |
| 195 |
|
|
| 196 |
|
|
| 197 |
|
// Author |